nim-confutils/tests/cli_example.nim
Zahary Karadjov 31c9f9ae38
Fix #8
2019-11-08 15:55:25 +00:00

10 lines
206 B
Nim

import
../confutils
cli do (foo: int, bar: string, withBaz: bool, args {.argument.}: seq[string]):
echo "foo = ", foo
echo "bar = ", bar
echo "baz = ", withBaz
for arg in args: echo "arg ", arg