diff --git a/scripts/code.py b/scripts/code.py index b269e67d..20f92133 100755 --- a/scripts/code.py +++ b/scripts/code.py @@ -1150,9 +1150,13 @@ if __name__ == "__main__": parser.add_argument( '-d', '--diff', help="Specify CSV/JSON file to diff against.") + # need a special Action here because this % causes problems + class StoreTruePercent(argparse._StoreTrueAction): + def format_usage(self): + return '-%%' parser.add_argument( - '-p', '--percent', - action='store_true', + '-%', '--percent', + action=StoreTruePercent, help="Only show percentage change, not a full diff.") parser.add_argument( '-C', '--compare', diff --git a/scripts/cov.py b/scripts/cov.py index 6a1b961e..d318cd84 100755 --- a/scripts/cov.py +++ b/scripts/cov.py @@ -1129,9 +1129,13 @@ if __name__ == "__main__": parser.add_argument( '-d', '--diff', help="Specify CSV/JSON file to diff against.") + # need a special Action here because this % causes problems + class StoreTruePercent(argparse._StoreTrueAction): + def format_usage(self): + return '-%%' parser.add_argument( - '-p', '--percent', - action='store_true', + '-%', '--percent', + action=StoreTruePercent, help="Only show percentage change, not a full diff.") parser.add_argument( '-C', '--compare', diff --git a/scripts/csv.py b/scripts/csv.py index dcd3aceb..bc64f2f4 100755 --- a/scripts/csv.py +++ b/scripts/csv.py @@ -3215,9 +3215,13 @@ if __name__ == "__main__": parser.add_argument( '-d', '--diff', help="Specify CSV/JSON file to diff against.") + # need a special Action here because this % causes problems + class StoreTruePercent(argparse._StoreTrueAction): + def format_usage(self): + return '-%%' parser.add_argument( - '-p', '--percent', - action='store_true', + '-%', '--percent', + action=StoreTruePercent, help="Only show percentage change, not a full diff.") parser.add_argument( '-C', '--compare', diff --git a/scripts/ctx.py b/scripts/ctx.py index 01d8919f..7aa0a095 100755 --- a/scripts/ctx.py +++ b/scripts/ctx.py @@ -1445,9 +1445,13 @@ if __name__ == "__main__": parser.add_argument( '-d', '--diff', help="Specify CSV/JSON file to diff against.") + # need a special Action here because this % causes problems + class StoreTruePercent(argparse._StoreTrueAction): + def format_usage(self): + return '-%%' parser.add_argument( - '-p', '--percent', - action='store_true', + '-%', '--percent', + action=StoreTruePercent, help="Only show percentage change, not a full diff.") parser.add_argument( '-C', '--compare', diff --git a/scripts/data.py b/scripts/data.py index 72f3a205..004c9c54 100755 --- a/scripts/data.py +++ b/scripts/data.py @@ -1150,9 +1150,13 @@ if __name__ == "__main__": parser.add_argument( '-d', '--diff', help="Specify CSV/JSON file to diff against.") + # need a special Action here because this % causes problems + class StoreTruePercent(argparse._StoreTrueAction): + def format_usage(self): + return '-%%' parser.add_argument( - '-p', '--percent', - action='store_true', + '-%', '--percent', + action=StoreTruePercent, help="Only show percentage change, not a full diff.") parser.add_argument( '-C', '--compare', diff --git a/scripts/perf.py b/scripts/perf.py index 5cfd4eae..3aad1be5 100755 --- a/scripts/perf.py +++ b/scripts/perf.py @@ -1689,9 +1689,13 @@ if __name__ == "__main__": parser.add_argument( '-d', '--diff', help="Specify CSV/JSON file to diff against.") + # need a special Action here because this % causes problems + class StoreTruePercent(argparse._StoreTrueAction): + def format_usage(self): + return '-%%' parser.add_argument( - '-p', '--percent', - action='store_true', + '-%', '--percent', + action=StoreTruePercent, help="Only show percentage change, not a full diff.") parser.add_argument( '-C', '--compare', diff --git a/scripts/perfbd.py b/scripts/perfbd.py index 6119f018..3a835cd7 100755 --- a/scripts/perfbd.py +++ b/scripts/perfbd.py @@ -1690,9 +1690,13 @@ if __name__ == "__main__": parser.add_argument( '-d', '--diff', help="Specify CSV/JSON file to diff against.") + # need a special Action here because this % causes problems + class StoreTruePercent(argparse._StoreTrueAction): + def format_usage(self): + return '-%%' parser.add_argument( - '-p', '--percent', - action='store_true', + '-%', '--percent', + action=StoreTruePercent, help="Only show percentage change, not a full diff.") parser.add_argument( '-C', '--compare', diff --git a/scripts/stack.py b/scripts/stack.py index a50ddd3d..0f621f4a 100755 --- a/scripts/stack.py +++ b/scripts/stack.py @@ -1188,9 +1188,13 @@ if __name__ == "__main__": parser.add_argument( '-d', '--diff', help="Specify CSV/JSON file to diff against.") + # need a special Action here because this % causes problems + class StoreTruePercent(argparse._StoreTrueAction): + def format_usage(self): + return '-%%' parser.add_argument( - '-p', '--percent', - action='store_true', + '-%', '--percent', + action=StoreTruePercent, help="Only show percentage change, not a full diff.") parser.add_argument( '-C', '--compare', diff --git a/scripts/structs.py b/scripts/structs.py index 05b17eac..3019318c 100755 --- a/scripts/structs.py +++ b/scripts/structs.py @@ -1334,9 +1334,13 @@ if __name__ == "__main__": parser.add_argument( '-d', '--diff', help="Specify CSV/JSON file to diff against.") + # need a special Action here because this % causes problems + class StoreTruePercent(argparse._StoreTrueAction): + def format_usage(self): + return '-%%' parser.add_argument( - '-p', '--percent', - action='store_true', + '-%', '--percent', + action=StoreTruePercent, help="Only show percentage change, not a full diff.") parser.add_argument( '-C', '--compare',