Enable profiling from cli (#4437)

This commit is contained in:
Saugat Pachhai
2020-08-20 23:22:39 +03:00
committed by GitHub
parent de0fe94cd0
commit 2f2e7121eb
2 changed files with 31 additions and 2 deletions
+8
View File
@@ -137,6 +137,14 @@ def get_parent_parser():
"""
parent_parser = argparse.ArgumentParser(add_help=False)
parent_parser.add_argument(
"--cprofile",
action="store_true",
default=False,
help=argparse.SUPPRESS,
)
parent_parser.add_argument("--cprofile-dump", help=argparse.SUPPRESS)
log_level_group = parent_parser.add_mutually_exclusive_group()
log_level_group.add_argument(
"-q", "--quiet", action="count", default=0, help="Be quiet."