Skip to content

Commit db620e4

Browse files
Update development_runner.py
Fix `TypeError: slice() takes no keyword arguments` when executing `hug -f ... -c ...`
1 parent f022c52 commit db620e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hug/development_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def hug(
7777
sys.exit(1)
7878

7979
use_cli_router = slice(
80-
start=(sys.argv.index("-c") if "-c" in sys.argv else sys.argv.index("--command")) + 2
80+
sys.argv.index("-c") if "-c" in sys.argv else sys.argv.index("--command") + 2
8181
)
8282
sys.argv[1:] = sys.argv[use_cli_router]
8383
api.cli.commands[command]()

0 commit comments

Comments
 (0)