mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
add makefile + show-help-output target
The show-help-output target makes it easy to see the help output of all non-hidden pip commands.
This commit is contained in:
parent
416ab39519
commit
98e3ef6cfb
1 changed files with 15 additions and 0 deletions
15
Makefile
Normal file
15
Makefile
Normal file
|
@ -0,0 +1,15 @@
|
|||
SHELL := /bin/bash
|
||||
|
||||
show-help-output:
|
||||
@echo -e "------------- pip help -------------\n"
|
||||
@pip help
|
||||
@echo
|
||||
|
||||
@for cmd in \
|
||||
`pip help \
|
||||
| sed -ne'/Commands:/,/General Options:/s,^\s.*,&,p' \
|
||||
| awk '{print $$1}'`; do \
|
||||
echo -e "------------- pip help $$cmd -------------\n"; \
|
||||
pip help $$cmd; \
|
||||
echo; echo; \
|
||||
done
|
Loading…
Reference in a new issue