diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-05-30 20:19:08 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-05-30 20:38:11 +0200 |
| commit | 791b930930b9ddcb752c97c8a8ef859b7afbeb0e (patch) | |
| tree | 269fac721dc55365f6582e521d511c87a19f03b0 /allyesconfig.py | |
| parent | 38cca3bdeca7d91044e11ddf2193e07c5d223ad3 (diff) | |
Add tool helper for selecting the top-level Kconfig
standard_kconfig() gets the top-level Kconfig file from the first
command-line argument, defaulting to "Kconfig". This removes some
boilerplate from tools.
Diffstat (limited to 'allyesconfig.py')
| -rwxr-xr-x | allyesconfig.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/allyesconfig.py b/allyesconfig.py index e405e3d..a0eb01d 100755 --- a/allyesconfig.py +++ b/allyesconfig.py @@ -32,10 +32,7 @@ import sys import kconfiglib def main(): - if len(sys.argv) > 2: - sys.exit("usage: {} [Kconfig]".format(sys.argv[0])) - - kconf = kconfiglib.Kconfig("Kconfig" if len(sys.argv) < 2 else sys.argv[1]) + kconf = kconfiglib.standard_kconfig() # Avoid warnings printed by Kconfiglib when assigning a value to a symbol that # has no prompt. Such assignments never have an effect. |
