index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Werner Llácer <wllacer@gmail.com> | 2022-02-03 00:02:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-03 00:02:30 +0100 |
commit | 3cd7dc24c7ebe8911978380d75fd79e0c581060a (patch) | |
tree | 1aa329b24f0eb41289f3b60d67218604e49b5873 /archinstall/__init__.py | |
parent | 389feef035cfbb1bd2c4f8be070fa085c088f151 (diff) |
-rw-r--r-- | archinstall/__init__.py | 10 |
diff --git a/archinstall/__init__.py b/archinstall/__init__.py index f31d8b3d..ea0962b2 100644 --- a/archinstall/__init__.py +++ b/archinstall/__init__.py @@ -58,12 +58,12 @@ def define_arguments(): help="JSON disk layout file") parser.add_argument("--silent", action="store_true", help="WARNING: Disables all prompts for input and confirmation. If no configuration is provided, this is ignored") - parser.add_argument("--dry-run","--dry_run",action="store_true", + parser.add_argument("--dry-run", "--dry_run", action="store_true", help="Generates a configuration file and then exits instead of performing an installation") parser.add_argument("--script", default="guided", nargs="?", help="Script to run for installation", type=str) - parser.add_argument("--mount-point","--mount_point",nargs="?",type=str,help="Define an alternate mount point for installation") - parser.add_argument("--debug",action="store_true",help="Adds debug info into the log") - parser.add_argument("--plugin",nargs="?",type=str) + parser.add_argument("--mount-point","--mount_point", nargs="?", type=str, help="Define an alternate mount point for installation") + parser.add_argument("--debug", action="store_true", default=False, help="Adds debug info into the log") + parser.add_argument("--plugin", nargs="?", type=str) def parse_unspecified_argument_list(unknowns :list, multiple :bool = False, error :bool = False) -> dict: """We accept arguments not defined to the parser. (arguments "ad hoc"). @@ -170,7 +170,7 @@ def post_process_arguments(arguments): if arguments.get('mount_point'): storage['MOUNT_POINT'] = arguments['mount_point'] - if arguments.get('debug',False): + if arguments.get('debug', False): log(f"Warning: --debug mode will write certain credentials to {storage['LOG_PATH']}/{storage['LOG_FILE']}!", fg="red", level=logging.WARNING) if arguments.get('plugin', None): |