ConfigArgParse icon indicating copy to clipboard operation
ConfigArgParse copied to clipboard

Option to not exit after write_config_file

Open wvoigt opened this issue 5 years ago • 2 comments

line 620: self.write_config_file(namespace, output_file_paths, exit_after=True)

It would be nice to have the option to not exit after the write. Is there a specific reason an exit must happen?

wvoigt avatar Apr 06 '20 18:04 wvoigt

When I originally wrote that code, I thought it should work like the --help arg. Is there a reason you can't run the command 2x - once with, once without the arg?

bw2 avatar Apr 09 '20 10:04 bw2

Running twice would be awkward. Using this in a web back end that uses many arguments from user form input that then creates a resulting PDF. Really wanted a way to save and run at the same time to store off all the user input so it could be recreated exactly if needed.

I have a possible solution (490fece). It works with for my use case. I'm just not sure if there are side effects for folks that use it some other way.

wvoigt avatar Apr 11 '20 14:04 wvoigt