Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support parser to sys.argv conversion #292

Open
skakunm opened this issue Apr 18, 2024 · 0 comments
Open

Support parser to sys.argv conversion #292

skakunm opened this issue Apr 18, 2024 · 0 comments

Comments

@skakunm
Copy link

skakunm commented Apr 18, 2024

Arge part of the code is relying on Argparse logic, including expecting it to read some things from sys.argv. And now I read arguments from config file in the main script, thus don't get the same sys.argv values. Is it possible to add a single function that would output equivalent sys.argv value for the current parser values? I see "convert_item_to_command_line_arg" function but it's not really clear how to use it, and it would be nice to have one function similar to ArgumentParser.convert_arg_line_to_args just inverted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant