From 43a8a72916c852a05f9db07e3d450336a750f24a Mon Sep 17 00:00:00 2001 From: Bram Veenboer <bram.veenboer@gmail.com> Date: Thu, 6 Jun 2024 09:20:52 +0200 Subject: [PATCH] Change the order in which the flags appear with --help --- main.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 7ea89d3..42a4b7c 100755 --- a/main.py +++ b/main.py @@ -19,27 +19,28 @@ def get_argument_parser(): ) parser.add_argument( - "--kernel", "-k", type=str, required=False, help="Specify the kernel name" + "-k", "--kernel", type=str, required=False, help="Specify the kernel name" ) parser.add_argument( - "--mock", "-m", + "--mock", type=str, help="Specify mock input file to use instead of profiling output", ) parser.add_argument( - "--output", "-o", type=str, help="Write full profiling output to file" + "-o", "--output", type=str, help="Write full profiling output to file" ) parser.add_argument( - "--quiet", "-q", + "--quiet", default=False, action="store_true", help="Print profiling output only", ) + return parser -- GitLab