MCPcopy Index your code
hub / github.com/archlinux/archinstall / _define_arguments

Method _define_arguments

archinstall/lib/args.py:509–654  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

507 _ = subparsers.add_parser(SubCommand.SHARE_LOG.value, help='Upload log file to public server')
508
509 def _define_arguments(self) -> ArgumentParser:
510 parser = ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
511
512 parser.add_argument(
513 '-v',
514 '--version',
515 action='version',
516 default=False,
517 version='%(prog)s ' + get_version(),
518 )
519 parser.add_argument(
520 '--config',
521 type=Path,
522 nargs='?',
523 default=None,
524 help='JSON configuration file',
525 )
526 parser.add_argument(
527 '--config-url',
528 type=str,
529 nargs='?',
530 default=None,
531 help='Url to a JSON configuration file',
532 )
533 parser.add_argument(
534 '--creds',
535 type=Path,
536 nargs='?',
537 default=None,
538 help='JSON credentials configuration file',
539 )
540 parser.add_argument(
541 '--creds-url',
542 type=str,
543 nargs='?',
544 default=None,
545 help='Url to a JSON credentials configuration file',
546 )
547 parser.add_argument(
548 '--creds-decryption-key',
549 type=str,
550 nargs='?',
551 default=None,
552 help='Decryption key for credentials file',
553 )
554 parser.add_argument(
555 '--silent',
556 action='store_true',
557 default=False,
558 help='WARNING: Disables all prompts for input and confirmation. If no configuration is provided, this is ignored',
559 )
560 parser.add_argument(
561 '--dry-run',
562 '--dry_run',
563 action='store_true',
564 default=False,
565 help='Generates a configuration file and then exits instead of performing an installation',
566 )

Callers 1

__init__Method · 0.95

Calls 1

get_versionFunction · 0.90

Tested by

no test coverage detected