diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2022-09-06 18:25:59 -0400 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2022-09-22 11:29:03 -0400 |
commit | d2026971825d3f774e130958bde2f74378151e7b (patch) | |
tree | 2c51c75cd5ec8f41b7169f9bf0381532f15c681f /mesonbuild/mconf.py | |
parent | b3dc99e6da9536afbd2c12db1c92ea4d68aaed49 (diff) | |
download | meson-d2026971825d3f774e130958bde2f74378151e7b.zip meson-d2026971825d3f774e130958bde2f74378151e7b.tar.gz meson-d2026971825d3f774e130958bde2f74378151e7b.tar.bz2 |
mconf: Add --no-pager option
Diffstat (limited to 'mesonbuild/mconf.py')
-rw-r--r-- | mesonbuild/mconf.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mesonbuild/mconf.py b/mesonbuild/mconf.py index e033231..ad00874 100644 --- a/mesonbuild/mconf.py +++ b/mesonbuild/mconf.py @@ -36,6 +36,8 @@ def add_arguments(parser: 'argparse.ArgumentParser') -> None: parser.add_argument('builddir', nargs='?', default='.') parser.add_argument('--clearcache', action='store_true', default=False, help='Clear cached state (e.g. found dependencies)') + parser.add_argument('--no-pager', action='store_true', default=False, + help='Do not redirect output to a pager') def make_lower_case(val: T.Any) -> T.Union[str, T.List[T.Any]]: # T.Any because of recursion... if isinstance(val, bool): @@ -295,7 +297,8 @@ class Conf: def run(options): coredata.parse_cmd_line_options(options) builddir = os.path.abspath(os.path.realpath(options.builddir)) - mlog.start_pager() + if not options.no_pager: + mlog.start_pager() c = None try: c = Conf(builddir) |