Skip to content

Commit

Permalink
Mergining in PR #112. Reworked partitioning and added new functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Torxed committed Mar 9, 2021
2 parents 48e9f13 + cfbaaed commit e2aeb3a
Show file tree
Hide file tree
Showing 12 changed files with 717 additions and 330 deletions.
17 changes: 16 additions & 1 deletion archinstall/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,19 @@
from .lib.packages import *
from .lib.output import *
from .lib.storage import *
from .lib.hardware import *
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)
Loading

0 comments on commit e2aeb3a

Please sign in to comment.