From 34f06489d3203c46e4cee484b2c0cec72f931c0c Mon Sep 17 00:00:00 2001 From: Alexis Ehret <08a@riseup.net> Date: Mon, 8 Feb 2021 20:26:59 +0100 Subject: [PATCH] Add short flags sys/clang-format.py --- sys/clang-format.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sys/clang-format.py b/sys/clang-format.py index b0f1e80d3a..7f9b450317 100755 --- a/sys/clang-format.py +++ b/sys/clang-format.py @@ -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()