Updates to CLI help messaging (#2372)

This commit is contained in:
Adam Hopkins 2022-01-14 00:54:51 +02:00 committed by GitHub
parent 8dfa49b648
commit 4a416e177a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,18 +181,11 @@ class DevelopmentGroup(Group):
dest="debug", dest="debug",
action="store_true", action="store_true",
help=( help=(
"Run the server in DEBUG mode. It includes DEBUG logging, " "Run the server in DEBUG mode. It includes DEBUG logging,\n"
"additional context on exceptions, and other settings " "additional context on exceptions, and other settings\n"
"not-safe for PRODUCTION, but helpful for debugging problems." "not-safe for PRODUCTION, but helpful for debugging problems."
), ),
) )
self.container.add_argument(
"-d",
"--dev",
dest="dev",
action="store_true",
help=("Debug + auto_reload."),
)
self.container.add_argument( self.container.add_argument(
"-r", "-r",
"--reload", "--reload",
@ -211,6 +204,13 @@ class DevelopmentGroup(Group):
action="append", action="append",
help="Extra directories to watch and reload on changes", help="Extra directories to watch and reload on changes",
) )
self.container.add_argument(
"-d",
"--dev",
dest="dev",
action="store_true",
help=("debug + auto reload."),
)
class OutputGroup(Group): class OutputGroup(Group):