From acc460f514d569804e924baae2f4e2f7e18dfc8a Mon Sep 17 00:00:00 2001 From: Andreas Karlsson Date: Wed, 30 Oct 2024 15:11:37 +0100 Subject: [PATCH] Consistently list short options first for install Other commands already list the short options first plus -h is always listed before --help. --- mesonbuild/minstall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/minstall.py b/mesonbuild/minstall.py index 93324d94f4f6..860826bf1b84 100644 --- a/mesonbuild/minstall.py +++ b/mesonbuild/minstall.py @@ -78,7 +78,7 @@ def add_arguments(parser: argparse.ArgumentParser) -> None: 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)') - parser.add_argument('--dry-run', '-n', action='store_true', + parser.add_argument('-n', '--dry-run', action='store_true', help='Doesn\'t actually install, but print logs. (Since 0.57.0)') parser.add_argument('--skip-subprojects', nargs='?', const='*', default='', help='Do not install files from given subprojects. (Since 0.58.0)')