-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Rework command handling #463
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
Conversation
Apologies for the monstrous commit, but most of the changes were very intertwined. This pull request can be considered a precursor to the improved option handling that is described in pull request 428. |
|
||
epilog = ''' | ||
Further help: | ||
- man 5 pip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
man
? AFAIK there is no man page support for pip.
It is an open issue indeed: #415
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct. This is a remnant of pull request 428. I'll remove it.
Needs reworking to cleanly apply as I've merged 464. |
Can we get #465 in first? I'll rebase with |
Have done 465, look forward to the next round of review/testing. |
* Remove module-singleton baseparser.parser object. A parser instance is created in pip.main() and passed as the first argument to each command. Each command can access the main parser from self.main_parser. * Remove all global command instances. Commands are instantiated on demand in pip.main(). Deferred command module imports were removed. * Factor option handling out of pip.main() and into pip.parseopts() * The list of available commands is now part of the parser's description and comes before all other options. 'Pip help' is more targeted at showing the options of a command instead of all available commands. * Move command specific options under a 'Command Options' OptionGroup * Move general options under a 'General Options' OptionGroup Conflicts: pip/__init__.py
Rework pip command handling
created in pip.main() and passed as the first argument to each command. Each
command can access the main parser from self.main_parser.
pip.main(). Deferred command module imports were removed.
comes before all other options. 'Pip help' is more targeted at showing the
options of a command instead of all available commands.
This pull request depends on pull requests 464 465 466