all repos — min @ 6bdc2b39467f690026953853255acf62d5e709b2

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

6bdc2b39467f690026953853255acf62d5e709b2

parent

46e90d2166cbe62cc91f381c2d296edada69f360

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 != "":