Add -q as alternative to --quiet for meson install

Since "meson test" already has both -q and --quiet it makes a lot of
sense to add the short option to "meson install" too for reasons of
symmetry.
pull/12776/merge
Andreas Karlsson 2 weeks ago committed by Eli Schwartz
parent 4ac3e7d356
commit 2d40813d42
  1. 1
      data/shell-completions/bash/meson
  2. 2
      data/shell-completions/zsh/_meson
  3. 2
      mesonbuild/minstall.py

@ -408,6 +408,7 @@ _meson-install() {
shortopts=(
h
n
q
C
)

@ -217,7 +217,7 @@ local -a meson_commands=(
"$__meson_cd"
'--no-rebuild[Do not rebuild before installing]'
'--only-changed[Do not overwrite files that are older than the copied file]'
'--quiet[Do not print every file that was installed]'
'(--quiet -q)'{'--quiet','-q'}'[Do not print every file that was installed]'
)
_arguments \
'(: -)'{'--help','-h'}'[show a help message and quit]' \

@ -74,7 +74,7 @@ def add_arguments(parser: argparse.ArgumentParser) -> None:
help='Do not rebuild before installing.')
parser.add_argument('--only-changed', default=False, action='store_true',
help='Only overwrite files that are older than the copied file.')
parser.add_argument('--quiet', default=False, action='store_true',
parser.add_argument('-q', '--quiet', default=False, action='store_true',
help='Do not print every file that was installed.')
parser.add_argument('--destdir', default=None,
help='Sets or overrides DESTDIR environment. (Since 0.57.0)')

Loading…
Cancel
Save