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

bool flag wants a bool value as well #1

Open
tzapu opened this issue Jul 16, 2019 · 3 comments
Open

bool flag wants a bool value as well #1

tzapu opened this issue Jul 16, 2019 · 3 comments

Comments

@tzapu
Copy link
Contributor

tzapu commented Jul 16, 2019

$ magictune.py --dry-run run
usage: magictune.py [-h] [--dry-run DRY_RUN]
                    [--hide-low-volume HIDE_LOW_VOLUME] [--sleep SECONDS]
                    {run,balance,asset-pairs}
magictune.py: error: argument --dry-run: Boolean value expected.

should specifying dry-run not be enough to consider it true without having to specify true as well(--dry-run true)?

@cleanunicorn
Copy link
Member

It's not a bad idea. Would you like to implement this change?

@tzapu
Copy link
Contributor Author

tzapu commented Jul 19, 2019

not in the slightest, i am python impaired

@cleanunicorn
Copy link
Member

@tzapu It can be implemented by setting action='store_true' in the add_argument() function.

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

2 participants