How to see state of arguments? #483
-
If I run command is there a way to display state of all arguments, boolean flags etc. Like python's argsparse >>>parser = argparse.ArgumentParser()
>>>parser.add_argument('foo', type=int)
>>>parser.set_defaults(bar=42, baz='badger')
>>>parser.parse_args(['736'])
Namespace(bar=42, baz='badger', foo=736) |
Beta Was this translation helpful? Give feedback.
Answered by
drewburlingame
Apr 10, 2023
Replies: 1 comment
-
There's the parse directive and command logger. Both of these can display for the end-user. If they aren't appropriate, can you explain your use case more? The code for these may also be helpful in understanding how to access what you're looking for. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tombohub
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's the parse directive and command logger.
Both of these can display for the end-user. If they aren't appropriate, can you explain your use case more? The code for these may also be helpful in understanding how to access what you're looking for.