Skip to content

Commit

Permalink
Add -q as alternative to --quiet for meson install
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jeltz committed Nov 2, 2024
1 parent 1feb771 commit ca82a4a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions data/shell-completions/bash/meson
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ _meson-install() {
shortopts=(
h
n
q
C
)

Expand Down
2 changes: 1 addition & 1 deletion data/shell-completions/zsh/_meson
Original file line number Diff line number Diff line change
Expand Up @@ -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]' \
Expand Down
2 changes: 1 addition & 1 deletion mesonbuild/minstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)')
Expand Down

0 comments on commit ca82a4a

Please sign in to comment.