[O] Check distro arg before creating config
This commit is contained in:
parent
c40cb09409
commit
ac27543cd8
2 changed files with 6 additions and 1 deletions
|
|
@ -32,6 +32,7 @@ def check_config(path) -> Config:
|
|||
|
||||
return create_config()
|
||||
|
||||
|
||||
def create_config() -> Config:
|
||||
"""
|
||||
Create config interactively
|
||||
|
|
@ -337,6 +338,9 @@ def run():
|
|||
parser = create_parser()
|
||||
args = parser.parse_args()
|
||||
|
||||
# Use a custom distro
|
||||
GLOBAL_CFG.override_distro = args.distro
|
||||
|
||||
if args.version:
|
||||
print(f'Version is {VERSION}')
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue