File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -178,9 +178,10 @@ def process_parsed_arguments(args) -> int:
178178 # This is a hack but because we have two positional arguments (and want that reflected in the auto-generated help),
179179 # all positional arguments, including the mountpath will be parsed into args.mount_source and we have to
180180 # manually separate them depending on the type.
181- lastArgument = args .mount_source [- 1 ]
182- if '://' not in lastArgument and (os .path .isdir (lastArgument ) or not os .path .exists (lastArgument )):
183- args .mount_point = args .mount_source .pop ()
181+ if args .mount :
182+ lastArgument = args .mount_source [- 1 ]
183+ if '://' not in lastArgument and (os .path .isdir (lastArgument ) or not os .path .exists (lastArgument )):
184+ args .mount_point = args .mount_source .pop ()
184185 if not args .mount_source and not args .write_overlay and not args .control_interface :
185186 raise argparse .ArgumentTypeError ("You must specify at least one path to a valid archive or folder!" )
186187
You can’t perform that action at this time.
0 commit comments