[O] Check distro arg before creating config

This commit is contained in:
Azalea Gui 2023-05-01 18:44:21 -04:00
parent c40cb09409
commit ac27543cd8
2 changed files with 6 additions and 1 deletions

View file

@ -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