Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorMetin Yazici <me@strboul.com>2022-08-09 20:14:28 +0200
committerGitHub <noreply@github.com>2022-08-09 20:14:28 +0200
commit3e10fc106b27c70593147b1c8aef1be221106d75 (patch)
treef39d26cdd24a01488f483395e9e82699f025144a /archinstall
parent437ac124c6f02bc4f1c7e319a8ad407acffe9d8f (diff)
Add command line option to get the program version (#1406)
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/archinstall/__init__.py b/archinstall/__init__.py
index f607a922..3e9f8391 100644
--- a/archinstall/__init__.py
+++ b/archinstall/__init__.py
@@ -66,6 +66,7 @@ def define_arguments():
Remember that the property/entry name python assigns to the parameters is the first string defined as argument and
dashes inside it '-' are changed to '_'
"""
+ parser.add_argument("-v", "--version", action="version", version="%(prog)s " + __version__)
parser.add_argument("--config", nargs="?", help="JSON configuration file or URL")
parser.add_argument("--creds", nargs="?", help="JSON credentials configuration file")
parser.add_argument("--disk_layouts","--disk_layout","--disk-layouts","--disk-layout",nargs="?",