Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/__init__.py
diff options
context:
space:
mode:
authorYash Tripathi <tripathiyash97@gmail.com>2021-06-10 18:36:15 +0530
committerGitHub <noreply@github.com>2021-06-10 15:06:15 +0200
commitfcd0acfef261ad83f0d470957f94e6b046f66411 (patch)
tree9125442224e50012d951c3f9839b2d81a77c44d0 /archinstall/__init__.py
parent14d0685edc18515e3eb2bbe6e8d0df5c589b3f04 (diff)
added --dry-run flag (#570)
* added --dry-run flag
Diffstat (limited to 'archinstall/__init__.py')
-rw-r--r--archinstall/__init__.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/archinstall/__init__.py b/archinstall/__init__.py
index bbad316d..84595528 100644
--- a/archinstall/__init__.py
+++ b/archinstall/__init__.py
@@ -32,7 +32,9 @@ def initialize_arguments():
parser.add_argument("--config", nargs="?", help="JSON configuration file or URL")
parser.add_argument("--creds", nargs="?", help="JSON credentials configuration file")
parser.add_argument("--silent", action="store_true",
- help="Warning!!! No prompts, ignored if config is not passed")
+ help="WARNING: Disables all prompts for input and confirmation. If no configuration is provided, this is ignored")
+ parser.add_argument("--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)
args, unknowns = parser.parse_known_args()
if args.config is not None:
@@ -61,6 +63,8 @@ def initialize_arguments():
key, val = arg[2:], True
config[key] = val
config["script"] = args.script
+ if args.dry_run is not None:
+ config["dry_run"] = args.dry_run
return config