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
dest
You used to be able to override the argument name with dest, but that doesn't work anymore.
This was useful to allow things like --json without overriding the json module, for example.
--json
json
Python script:
import argh @argh.arg("-l", dest="list_files") def somefunc(list_files=False): pass
Command line input/output:
$ my-script.py ... argh.assembling.ArgumentNameMappingError: somefunc: argument -l does not fit function signature: -l/--list-files
The old behavior where if dest is supplied, it overrides any guesses as to the destination argument.
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Thanks, confirming, scheduled the next bugfix release.
Sorry, something went wrong.
Related, not necessarily a replacement: #222.
fix: exposing func arg in CLI under a different name (fixes #224)
9fd19ce
c16395d
neithere
No branches or pull requests
Summary
You used to be able to override the argument name with
dest
, but that doesn't work anymore.This was useful to allow things like
--json
without overriding thejson
module, for example.To Reproduce
Python script:
Command line input/output:
Expected behavior
The old behavior where if
dest
is supplied, it overrides any guesses as to the destination argument.Environment
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: