diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/cmd.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/luarocks/cmd.lua b/src/luarocks/cmd.lua index 962d9256..3abad789 100644 --- a/src/luarocks/cmd.lua +++ b/src/luarocks/cmd.lua | |||
@@ -293,7 +293,11 @@ do | |||
293 | end | 293 | end |
294 | 294 | ||
295 | detect_config_via_args = function(args) | 295 | detect_config_via_args = function(args) |
296 | local project_dir, given = find_project_dir(args.project_tree) | 296 | local project_dir, given |
297 | if not args.no_project then | ||
298 | project_dir, given = find_project_dir(args.project_tree) | ||
299 | end | ||
300 | |||
297 | local detected = detect_lua_via_args(args, project_dir) | 301 | local detected = detect_lua_via_args(args, project_dir) |
298 | if args.lua_version then | 302 | if args.lua_version then |
299 | detected.given_lua_version = args.lua_version | 303 | detected.given_lua_version = args.lua_version |
@@ -469,6 +473,7 @@ Enabling completion for Fish: | |||
469 | parser:flag("--local", "Use the tree in the user's home directory.\n".. | 473 | parser:flag("--local", "Use the tree in the user's home directory.\n".. |
470 | "To enable it, see '"..program.." help path'.") | 474 | "To enable it, see '"..program.." help path'.") |
471 | parser:flag("--global", "Use the system tree when `local_by_default` is `true`.") | 475 | parser:flag("--global", "Use the system tree when `local_by_default` is `true`.") |
476 | parser:flag("--no-project", "Do not use project tree even if running from a project folder.") | ||
472 | parser:flag("--verbose", "Display verbose output of commands executed.") | 477 | parser:flag("--verbose", "Display verbose output of commands executed.") |
473 | parser:option("--timeout", "Timeout on network operations, in seconds.\n".. | 478 | parser:option("--timeout", "Timeout on network operations, in seconds.\n".. |
474 | "0 means no timeout (wait forever). Default is ".. | 479 | "0 means no timeout (wait forever). Default is ".. |