diff options
author | Araq <rumpf_a@web.de> | 2019-07-18 11:00:29 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2019-07-18 11:00:29 +0200 |
commit | 5b7273b4f8f716c1f5d4f582ebe23f8adbd48b0b (patch) | |
tree | 97ae661a43ac84c4e3273430e706a46c307456c9 /nimpretty/nimpretty.nim | |
parent | 4becd5a2a8d67c7481af457d5007e1a313d454c8 (diff) | |
download | Nim-5b7273b4f8f716c1f5d4f582ebe23f8adbd48b0b.tar.gz |
[refactoring] nimpretty
Diffstat (limited to 'nimpretty/nimpretty.nim')
-rw-r--r-- | nimpretty/nimpretty.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nimpretty/nimpretty.nim b/nimpretty/nimpretty.nim index e0b27c231..aa6784c82 100644 --- a/nimpretty/nimpretty.nim +++ b/nimpretty/nimpretty.nim @@ -25,7 +25,7 @@ const Usage: nimpretty [options] file.nim Options: - --output:file set the output file (default: overwrite the input file) + --out:file set the output file (default: overwrite the input file) --indent:N[=0] set the number of spaces that is used for indentation --indent:0 means autodetection (default behaviour) --maxLineLen:N set the desired maximum line length (default: 80) @@ -79,7 +79,7 @@ proc main = of "help", "h": writeHelp() of "version", "v": writeVersion() of "backup": backup = parseBool(val) - of "output", "o": outfile = val + of "output", "o", "out": outfile = val of "indent": opt.indWidth = parseInt(val) of "maxlinelen": opt.maxLineLen = parseInt(val) else: writeHelp() |