diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/lint.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/luarocks/lint.lua b/src/luarocks/lint.lua index 63b549aa..61388af6 100644 --- a/src/luarocks/lint.lua +++ b/src/luarocks/lint.lua | |||
@@ -12,13 +12,17 @@ help_arguments = "<rockspec>" | |||
12 | help = [[ | 12 | help = [[ |
13 | This is a utility function that checks the syntax of a rockspec. | 13 | This is a utility function that checks the syntax of a rockspec. |
14 | 14 | ||
15 | It reports success or failure if the text of a rockspec is | 15 | It returns success or failure if the text of a rockspec is |
16 | syntactically correct. | 16 | syntactically correct. |
17 | ]] | 17 | ]] |
18 | 18 | ||
19 | function run(...) | 19 | function run(...) |
20 | local flags, input = util.parse_flags(...) | 20 | local flags, input = util.parse_flags(...) |
21 | 21 | ||
22 | if not input then | ||
23 | return nil, "Argument missing, see help." | ||
24 | end | ||
25 | |||
22 | local filename = input | 26 | local filename = input |
23 | if not input:match(".rockspec$") then | 27 | if not input:match(".rockspec$") then |
24 | local err | 28 | local err |