Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/torch7.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Frey <will.frey@digitalreasoning.com>2017-04-10 18:03:22 +0300
committerSoumith Chintala <soumith@gmail.com>2017-04-10 18:03:22 +0300
commita9174b52f2975e5766d3ff9a6f111a2cffa40054 (patch)
tree7ac45e87efffd8e08174a46200cf1dd005679370 /CmdLine.lua
parent7d9217cf9e3fec74fe154b71dfb7a688c9201f45 (diff)
Update CmdLine.lua (#1000)
Very small cosmetic change to make positional arguments look better. Previously, positional arguments would look like: ``` $ th my_script.lua --help Usage: [options] <arg1><arg2> -opt1 blah blah [default] ``` and now it should look like ``` $ th my_script.lua --help Usage: [options] <arg1> <arg2> -opt1 blah blah [default] ``` Very minorly cosmetic.
Diffstat (limited to 'CmdLine.lua')
-rw-r--r--CmdLine.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/CmdLine.lua b/CmdLine.lua
index 23e9969..6436350 100644
--- a/CmdLine.lua
+++ b/CmdLine.lua
@@ -227,9 +227,9 @@ end
function CmdLine:help(arg)
io.write('Usage: ')
if arg then io.write(arg[0] .. ' ') end
- io.write('[options] ')
+ io.write('[options]')
for i=1,#self.arguments do
- io.write('<' .. strip(self.arguments[i].key) .. '>')
+ io.write(' <' .. strip(self.arguments[i].key) .. '>')
end
io.write('\n')