diff options
Diffstat (limited to 'tests/argtable.lua')
-rw-r--r-- | tests/argtable.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/argtable.lua b/tests/argtable.lua index 5ed5d4e..95ee825 100644 --- a/tests/argtable.lua +++ b/tests/argtable.lua | |||
@@ -1,7 +1,7 @@ | |||
1 | -- | 1 | -- |
2 | -- ARGTABLE.LUA Copyright (c) 2007, Asko Kauppi <akauppi@gmail.com> | 2 | -- ARGTABLE.LUA Copyright (c) 2007, Asko Kauppi <akauppi@gmail.com> |
3 | -- | 3 | -- |
4 | -- Command line parameter parsing | 4 | -- Command line argument parsing |
5 | -- | 5 | -- |
6 | -- NOTE: Wouldn't hurt having such a service built-in to Lua...? :P | 6 | -- NOTE: Wouldn't hurt having such a service built-in to Lua...? :P |
7 | -- | 7 | -- |
@@ -10,10 +10,10 @@ local m= {} | |||
10 | 10 | ||
11 | -- tbl= argtable(...) | 11 | -- tbl= argtable(...) |
12 | -- | 12 | -- |
13 | -- Returns a table with 1..N indices being 'value' parameters, and any | 13 | -- Returns a table with 1..N indices being 'value' arguments, and any |
14 | -- "-flag[=xxx]" or "--flag[=xxx]" parameters set to { flag=xxx/true }. | 14 | -- "-flag[=xxx]" or "--flag[=xxx]" arguments set to { flag=xxx/true }. |
15 | -- | 15 | -- |
16 | -- In other words, makes handling command line parameters simple. :) | 16 | -- In other words, makes handling command line arguments simple. :) |
17 | -- | 17 | -- |
18 | -- 15 --> { 15 } | 18 | -- 15 --> { 15 } |
19 | -- -20 --> { -20 } | 19 | -- -20 --> { -20 } |