GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — gh-99735: Handle no arguments when using sub-commands in argparse by ppaez · Pull Request #99736 · python/cpython Conversation
|
| One particularly effective way of handling sub-commands is to | ||
| combine the use of the :meth:`add_subparsers` method with calls to | ||
| :meth:`set_defaults` so that each subparser knows which Python | ||
| function it should execute. The :meth:`set_defaults` method of the |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I'd recommend keeping the original structure so just the new changes can be more easily reviewed.
| One particularly effective way of handling sub-commands is to | |
| combine the use of the :meth:`add_subparsers` method with calls to | |
| :meth:`set_defaults` so that each subparser knows which Python | |
| function it should execute. The :meth:`set_defaults` method of the | |
| One particularly effective way of handling sub-commands is to combine the use | |
| of the :meth:`add_subparsers` method with calls to :meth:`set_defaults` so | |
| that each subparser knows which Python function it should execute. | |
| The :meth:`set_defaults` method of the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| combine the use of the :meth:`add_subparsers` method with calls to | ||
| :meth:`set_defaults` so that each subparser knows which Python | ||
| function it should execute. The :meth:`set_defaults` method of the | ||
| main parser is called to handle the case when no subcommand is |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
tiny nit, since 'sub-command' was used above in the same paragraph
| main parser is called to handle the case when no subcommand is | |
| main parser is called to handle the case when no sub-command is |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks! Closing in favour of #100927 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.