We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
--destructive
--destructive-mode
By default, argparse allows abbreviated commands, such as --destructive-mode being specified as --destructive.
argparse
Since Python 3.5, this default behavior can be disabled by setting allow_abbrev=False when instantiating argparse.ArgumentParser:
allow_abbrev=False
argparse.ArgumentParser
https://docs.python.org/3/library/argparse.html#allow-abbrev
Found by @thp-canonical and @Ardelean-Calin
This avoids wrongly learning command-line arguments that might at some point not be unique anymore.
The text was updated successfully, but these errors were encountered:
Thank you for reporting us your feedback!
The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-3114.
This message was autogenerated
Sorry, something went wrong.
No branches or pull requests
What needs to get done
By default,
argparse
allows abbreviated commands, such as--destructive-mode
being specified as--destructive
.Since Python 3.5, this default behavior can be disabled by setting
allow_abbrev=False
when instantiatingargparse.ArgumentParser
:https://docs.python.org/3/library/argparse.html#allow-abbrev
Found by @thp-canonical and @Ardelean-Calin
Why it needs to get done
This avoids wrongly learning command-line arguments that might at some point not be unique anymore.
The text was updated successfully, but these errors were encountered: