Skip to content

Commit 7fcf470

Browse files
Merge pull request #798 from knowsuchagency/patch-1
Fix development runner `TypeError` when executing cli commands
2 parents aa1ca5e + db620e4 commit 7fcf470

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)