Skip to content

Commit b8cdd06

Browse files
jeltzeli-schwartz
authored andcommitted
Consistently list short options first for install
Other commands already list the short options first plus -h is always listed before --help.
1 parent 2d40813 commit b8cdd06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mesonbuild/minstall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def add_arguments(parser: argparse.ArgumentParser) -> None:
7878
help='Do not print every file that was installed.')
7979
parser.add_argument('--destdir', default=None,
8080
help='Sets or overrides DESTDIR environment. (Since 0.57.0)')
81-
parser.add_argument('--dry-run', '-n', action='store_true',
81+
parser.add_argument('-n', '--dry-run', action='store_true',
8282
help='Doesn\'t actually install, but print logs. (Since 0.57.0)')
8383
parser.add_argument('--skip-subprojects', nargs='?', const='*', default='',
8484
help='Do not install files from given subprojects. (Since 0.58.0)')

0 commit comments

Comments
 (0)