Consistently list short options first for install

Other commands already list the short options first plus -h is always
listed before --help.
pull/12776/merge
Andreas Karlsson 4 weeks ago committed by Eli Schwartz
parent 2d40813d42
commit b8cdd06af5
  1. 2
      mesonbuild/minstall.py

@ -78,7 +78,7 @@ def add_arguments(parser: argparse.ArgumentParser) -> None:
help='Do not print every file that was installed.') help='Do not print every file that was installed.')
parser.add_argument('--destdir', default=None, parser.add_argument('--destdir', default=None,
help='Sets or overrides DESTDIR environment. (Since 0.57.0)') 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)') help='Doesn\'t actually install, but print logs. (Since 0.57.0)')
parser.add_argument('--skip-subprojects', nargs='?', const='*', default='', parser.add_argument('--skip-subprojects', nargs='?', const='*', default='',
help='Do not install files from given subprojects. (Since 0.58.0)') help='Do not install files from given subprojects. (Since 0.58.0)')

Loading…
Cancel
Save