diff options
author | bptato <nincsnevem662@gmail.com> | 2022-09-13 20:44:55 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-09-13 20:44:55 +0200 |
commit | 51d83224320b8bd4e81332802bb62158ae6deec5 (patch) | |
tree | 4bfb320d7960f78a68de857f26d43ff2f59bea57 /src/main.nim | |
parent | 51ea622d58bfca19212fac1800cfb033bb85ec39 (diff) | |
download | chawan-51d83224320b8bd4e81332802bb62158ae6deec5.tar.gz |
More JS bindings
Diffstat (limited to 'src/main.nim')
-rw-r--r-- | src/main.nim | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.nim b/src/main.nim index 51824798..584c92e6 100644 --- a/src/main.nim +++ b/src/main.nim @@ -68,6 +68,12 @@ while i < params.len: help(1) of "-h", "--help": help(0) + of "-r", "--run": + inc i + if i < params.len: + gconfig.startup = params[i] + else: + help(1) of "--": escape_all = true elif param.len > 0: @@ -77,7 +83,7 @@ while i < params.len: pages.add(param) inc i -if pages.len == 0: +if pages.len == 0 and gconfig.startup == "": if stdin.isatty: help(1) |