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

github.com/torch/trepl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsoumith <soumith@gmail.com>2015-10-26 19:53:59 +0300
committersoumith <soumith@gmail.com>2015-10-26 19:53:59 +0300
commit80c261e383e6a30dbc6deebcc4f0010d40e4f281 (patch)
tree55d50212e4caf0d3d330b4788c242b25088c2dd3
parent76e481c2adb5987c714e124091b105867bc39d4c (diff)
small bugfix when printing out invalid options
-rw-r--r--th2
1 files changed, 1 insertions, 1 deletions
diff --git a/th b/th
index f5e82b4..c90f23a 100644
--- a/th
+++ b/th
@@ -71,7 +71,7 @@ for _,arg in ipairs(parg) do
nextarg = 'lib'
else
-- unknown
- print('Error: unrecognized flag --' .. option)
+ print('Error: unrecognized flag --' .. (option ~= nil and option or shortopt))
print(help)
return
end