aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mintro.py
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2018-12-30 11:37:50 +0100
committerDaniel Mensinger <daniel@mensinger-ka.de>2019-01-06 12:19:31 +0100
commit84948ea6cd61c54404d6e0df82594a56e19fe01f (patch)
treef6eb6d15abb0c63e7ac7b5873c9ff4e69643904f /mesonbuild/mintro.py
parent5c39dd0668ffe301aee66453b86591bbdb29a954 (diff)
downloadmeson-84948ea6cd61c54404d6e0df82594a56e19fe01f.zip
meson-84948ea6cd61c54404d6e0df82594a56e19fe01f.tar.gz
meson-84948ea6cd61c54404d6e0df82594a56e19fe01f.tar.bz2
Renamed `--force-new` to `--force-dict-output`
Diffstat (limited to 'mesonbuild/mintro.py')
-rw-r--r--mesonbuild/mintro.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/mintro.py b/mesonbuild/mintro.py
index 4de16ca..4a20e6b 100644
--- a/mesonbuild/mintro.py
+++ b/mesonbuild/mintro.py
@@ -62,7 +62,7 @@ def add_arguments(parser):
help='Print all available information.')
parser.add_argument('-i', '--indent', dest='indent', type=int, default=0,
help='Number of spaces used for indentation.')
- parser.add_argument('-f', '--force-new', action='store_true', dest='force_new', default=False,
+ parser.add_argument('-f', '--force-dict-output', action='store_true', dest='force_dict', default=False,
help='Always use the new JSON format for multiple entries (even for 0 and 1 introspection commands)')
parser.add_argument('builddir', nargs='?', default='.', help='The build directory')
@@ -504,10 +504,10 @@ def run(options):
indent = options.indent if options.indent > 0 else None
- if len(results) == 0 and not options.force_new:
+ if len(results) == 0 and not options.force_dict:
print('No command specified')
return 1
- elif len(results) == 1 and not options.force_new:
+ elif len(results) == 1 and not options.force_dict:
# Make to keep the existing output format for a single option
print(json.dumps(results[0][1], indent=indent))
else: