summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2019-12-14 18:25:18 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2019-12-14 18:28:22 +0100
commit2e08499ce38ca7bf2f368c4dc321ef8a6f287530 (patch)
tree39af01ad207b5b54e090d6eb8d92bc9ce2f7f726
parent2122d5d5891a9a93cc38aa8e21cedf7942ae2ae2 (diff)
Make genconfig and standard_kconfig() consistent
Tweak messages and variable names to match.
-rwxr-xr-xgenconfig.py6
-rw-r--r--kconfiglib.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/genconfig.py b/genconfig.py
index 3482673..d0a8870 100755
--- a/genconfig.py
+++ b/genconfig.py
@@ -100,8 +100,8 @@ only supported for backwards compatibility).
""")
parser.add_argument(
- "kconfig_filename",
- metavar="KCONFIG_FILENAME",
+ "kconfig",
+ metavar="KCONFIG",
nargs="?",
default="Kconfig",
help="Top-level Kconfig file (default: Kconfig)")
@@ -109,7 +109,7 @@ only supported for backwards compatibility).
args = parser.parse_args()
- kconf = kconfiglib.Kconfig(args.kconfig_filename, suppress_traceback=True)
+ kconf = kconfiglib.Kconfig(args.kconfig, suppress_traceback=True)
kconf.load_config()
if args.header_path is None:
diff --git a/kconfiglib.py b/kconfiglib.py
index f61d524..bf232d1 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -6204,7 +6204,7 @@ def standard_kconfig(description=None):
metavar="KCONFIG",
default="Kconfig",
nargs="?",
- help="Kconfig file (default: Kconfig)")
+ help="Top-level Kconfig file (default: Kconfig)")
return Kconfig(parser.parse_args().kconfig, suppress_traceback=True)