summaryrefslogtreecommitdiff
path: root/src/ukify/ukify.py
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-04-13 17:53:18 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-05-03 12:29:41 +0200
commit50f4add445a19e7bb40b88e473ede3489b4f2a6a (patch)
treeb822dd1f015ecf50a79ca3e1002f99f9c1b0310a /src/ukify/ukify.py
parentd3533162d1926f04560357ad588cc7757422fc6a (diff)
downloadsystemd-50f4add445a19e7bb40b88e473ede3489b4f2a6a.tar.gz
ukify: use UPPERCASE for parameter names
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] ...
Diffstat (limited to 'src/ukify/ukify.py')
-rwxr-xr-xsrc/ukify/ukify.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ukify/ukify.py b/src/ukify/ukify.py
index 3fbeb2b215..fc9c4767b1 100755
--- a/src/ukify/ukify.py
+++ b/src/ukify/ukify.py
@@ -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]')