all repos — min @ 57375b5f527c824afa0859ea42f6998db52e6a4f

A small but practical concatenative programming language.

Only the first argument is used as file name.
h3rald h3rald@h3rald.com
Fri, 03 Nov 2017 09:33:41 +0100
commit

57375b5f527c824afa0859ea42f6998db52e6a4f

parent

06b22369ed96b7290e5f40f0b4ecd024130952e3

1 files changed, 5 insertions(+), 1 deletions(-)

jump to
M min.nimmin.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 != "":