if loadfile is not None:
if saw_other_args:
- msg = (
- f'Augmenting commandline arguments with those from {loadfile}.'
- )
+ msg = f'Augmenting commandline arguments with those from {loadfile}.'
print(msg, file=sys.stderr)
saved_messages.append(msg)
if not os.path.exists(loadfile):
sys.exit(-1)
with open(loadfile, 'r') as rf:
newargs = rf.readlines()
- newargs = [
- arg.strip('\n') for arg in newargs if 'config_savefile' not in arg
- ]
+ newargs = [arg.strip('\n') for arg in newargs if 'config_savefile' not in arg]
sys.argv += newargs
# Parse (possibly augmented, possibly completely overwritten)