]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ukify: use UPPERCASE for parameter names
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 13 Apr 2023 15:53:18 +0000 (17:53 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 3 May 2023 10:29:41 +0000 (12:29 +0200)
We generally nowadays use UPPERCASE for parameters in variuos help text.
Let's be consistent here too, and also drop duplicated 'usage:':
$ ukify -h
usage: ukify [options…] LINUX INITRD…
       ukify -h | --help

Build and sign Unified Kernel Images

positional arguments:
  LINUX                 vmlinuz file [.linux section]
  INITRD…               initrd files [.initrd section]
...

src/ukify/ukify.py

index 3fbeb2b215703b16e0258f2b6059c9bb4232229c..fc9c4767b132aeda2d68aea016400c354045930c 100755 (executable)
@@ -4,7 +4,7 @@
 # pylint: disable=missing-docstring,invalid-name,import-outside-toplevel
 # pylint: disable=consider-using-with,unspecified-encoding,line-too-long
 # pylint: disable=too-many-locals,too-many-statements,too-many-return-statements
-# pylint: disable=too-many-branches
+# pylint: disable=too-many-branches,fixme
 
 import argparse
 import collections
@@ -658,7 +658,7 @@ def parse_args(args=None):
         description='Build and sign Unified Kernel Images',
         allow_abbrev=False,
         usage='''\
-usage: ukify [options…] [linux [initrd…]]
+ukify [options…] [LINUX INITRD…]
        ukify -h | --help
 ''')
 
@@ -666,10 +666,12 @@ usage: ukify [options…] [linux [initrd…]]
     p.error = lambda message: p.exit(2, f'{p.prog}: error: {message}\n')
 
     p.add_argument('linux',
+                   metavar='LINUX',
                    type=pathlib.Path,
                    nargs="?",
                    help='vmlinuz file [.linux section]')
     p.add_argument('initrd',
+                   metavar='INITRD…',
                    type=pathlib.Path,
                    nargs='*',
                    help='initrd files [.initrd section]')