in tools/upgrade/commands/command.py [0:0]
def add_arguments(parser: argparse.ArgumentParser) -> None:
super(ErrorSuppressingCommand, ErrorSuppressingCommand).add_arguments(parser)
parser.add_argument("--comment", help="Custom comment after fixme comments")
parser.add_argument(
"--max-line-length",
default=88,
type=int,
help="Enforce maximum line length on new comments "
+ "(default: %(default)s, use 0 to set no maximum line length)",
)
parser.add_argument(
"--truncate",
action="store_true",
help="Truncate error messages to maximum line length.",
)
parser.add_argument(
"--unsafe",
action="store_true",
help="Don't check syntax when applying fixmes.",
)
parser.add_argument(
"--force-format-unsuppressed", action="store_true", help=argparse.SUPPRESS
)
parser.add_argument(
"--lint",
action="store_true",
help="Run lint to ensure added fixmes comply with black formatting. \
Doubles the runtime of pyre-ugprade.",
)
parser.add_argument("--no-commit", action="store_true", help=argparse.SUPPRESS)
parser.add_argument(
"--do-not-run-buck-clean",
action="store_false",
dest="should_clean",
default=True,
help=argparse.SUPPRESS,
)