misc

Misc scripts and tools
git clone git://git.alexwennerberg.com/misc
Log | Files | Refs | README | LICENSE

commit 0225251e5d43039e316b54b728ae59f7db242553
parent bdfa8f0360c210127197b4bd54069486511929f1
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sat, 26 Feb 2022 12:59:54 -0800

move comment

Diffstat:
Marg.rs | 24++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/arg.rs b/arg.rs @@ -1,15 +1,3 @@ -// This file is licensed under the terms of 0BSD: -// -// Permission to use, copy, modify, and/or distribute this software for any purpose with or without -// fee is hereby granted. -// -// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS -// SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE -// AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, -// NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE -// OF THIS SOFTWARE. - // Extremely minimalist command line interface, inspired by // [sbase](https://git.suckless.org/sbase/)'s // [arg.h](https://git.suckless.org/sbase/file/arg.h.html) @@ -30,6 +18,18 @@ // 2. No use of macros // // Copy/paste this code and you have a CLI! No library needed! +// +// This file is licensed under the terms of 0BSD: +// +// Permission to use, copy, modify, and/or distribute this software for any purpose with or without +// fee is hereby granted. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS +// SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE +// AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, +// NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE +// OF THIS SOFTWARE. use std::env; use std::ffi::OsString;