Skip to content

Commit

Permalink
remove deprecated debug flag (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
nleroy917 committed Feb 9, 2023
1 parent 0ec3709 commit 8115fd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
9 changes: 1 addition & 8 deletions pephub/helpers.py
Expand Up @@ -63,14 +63,7 @@ def add_subparser(cmd, description):
help="The port the webserver should be run on.",
default=DEFAULT_PORT,
)
sps["serve"].add_argument(
"-d",
"--debug",
dest="debug",
help="Run the server with debug mode on",
type=bool,
default=False,
)

sps["serve"].add_argument(
"-r",
"--reload",
Expand Down
4 changes: 1 addition & 3 deletions pephub/main.py
Expand Up @@ -102,9 +102,7 @@ def main():
sys.exit(1)

if args.command == "serve":
uvicorn.run(
app, host="0.0.0.0", port=args.port, debug=args.debug, reload=args.reload
)
uvicorn.run(app, host="0.0.0.0", port=args.port, reload=args.reload)

else:
_LOGGER.error(f"unknown command: {args.command}")
Expand Down

0 comments on commit 8115fd1

Please sign in to comment.