index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton@hvornum.se> | 2021-03-09 23:39:11 +0100 |
---|---|---|
committer | Anton Hvornum <anton@hvornum.se> | 2021-03-09 23:39:11 +0100 |
commit | e2aeb3a32faa397db899f4105a16f31a095387be (patch) | |
tree | 007129425274e4efee38622c8cf5f912074a5531 /archinstall/__init__.py | |
parent | 48e9f13f0105e449c95e52672d1bf98e6e6b5d65 (diff) | |
parent | cfbaaedb17e9ad6975a5bb37095e2b4ebe8e6797 (diff) |
-rw-r--r-- | archinstall/__init__.py | 17 |
diff --git a/archinstall/__init__.py b/archinstall/__init__.py index ee2d0361..d4452d38 100644 --- a/archinstall/__init__.py +++ b/archinstall/__init__.py @@ -12,4 +12,19 @@ from .lib.services import * from .lib.packages import * from .lib.output import * from .lib.storage import * -from .lib.hardware import *
\ No newline at end of file +from .lib.hardware import * + +## Basic version of arg.parse() supporting: +## --key=value +## --boolean +arguments = {} +positionals = [] +for arg in sys.argv[1:]: + if '--' == arg[:2]: + if '=' in arg: + key, val = [x.strip() for x in arg[2:].split('=', 1)] + else: + key, val = arg[2:], True + arguments[key] = val + else: + positionals.append(arg)
\ No newline at end of file |