Merge pull request #715 from archlinux/torxed-add-mntpoint-arg

Adding in --mount-point argument, which overrides storage['MOUNT_POINT']
This commit is contained in:
Anton Hvornum 2021-11-15 18:49:39 +00:00 committed by GitHub
commit fd2eb74203
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,8 @@ arguments = initialize_arguments()
storage['arguments'] = arguments
if arguments.get('debug'):
log(f"Warning: --debug mode will write certain credentials to {storage['LOG_PATH']}/{storage['LOG_FILE']}!", fg="red", level=logging.WARNING)
if arguments.get('mount-point'):
storage['MOUNT_POINT'] = arguments['mount-point']
from .lib.plugins import plugins, load_plugin # This initiates the plugin loading ceremony