Only the first argument is used as file name.
h3rald h3rald@h3rald.com
Fri, 03 Nov 2017 09:33:41 +0100
1 files changed,
5 insertions(+),
1 deletions(-)
jump to
M
min.nim
→
min.nim
@@ -269,12 +269,13 @@ -v, —version Print the program version
-i, —interactive Start $1 shell""" % [appname, version] var file, s: string = "" + var args = newSeq[string](0) setLogFilter(lvlNotice) for kind, key, val in getopt(): case kind: of cmdArgument: - file = key + args.add key of cmdLongOption, cmdShortOption: case key: of "log", "l":@@ -301,6 +302,9 @@ discard
else: discard + if args.len > 0 : + file = args[0] + if s != "": minString(s) elif file != "":