misc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.alexwennerberg.com/misc
Log | Files | Refs | README | LICENSE

commit c2b8b5bdc86e97634e9492bfd2fb2cc4a7ff0293
parent 3fdcb0ee307b3dedbb16e3bf6b70bf176dc38868
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sat, 26 Feb 2022 11:42:19 -0800

add note abt windows

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

diff --git a/arg.rs b/arg.rs @@ -27,6 +27,8 @@ // 2. No use of macros // // Copy/paste this code and you have a CLI! No library needed! +// +// Only works on unix-like system right now. Windows support TBD use std::env; use std::ffi::OsString; @@ -94,9 +96,7 @@ impl Args { b'f' => out.f = parse_os_arg(args.next()), b'b' => out.b = parse_arg(args.next()), // Stop editing // - _ => { - usage(); - } + _ => usage(), }) } out