Add short flags sys/clang-format.py
This commit is contained in:
parent
49e1874b09
commit
34f06489d3
1 changed files with 6 additions and 3 deletions
|
|
@ -116,15 +116,18 @@ def process(args):
|
|||
def parse():
|
||||
parser = argparse.ArgumentParser(description="Clang format the rizin project")
|
||||
parser.add_argument(
|
||||
"--check", action="store_true", help="Flag that enable the check mode"
|
||||
"-c", "--check", action="store_true", help="enable the check mode"
|
||||
)
|
||||
parser.add_argument(
|
||||
"-v", "--verbose", action="store_true", help="use verbose output"
|
||||
)
|
||||
parser.add_argument("--verbose", action="store_true", help="Use verbose output")
|
||||
parser.add_argument("-f", "--file", help="formats (or checks) only the given file")
|
||||
parser.add_argument(
|
||||
"-d",
|
||||
"--diff",
|
||||
type=str,
|
||||
default=None,
|
||||
help="Format all modified file related to branch",
|
||||
help="format all modified file related to branch",
|
||||
)
|
||||
return parser.parse_args()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue