1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Merge pull request #5986 from Albert-Guan/ISSUE5984

Issue5984
This commit is contained in:
Xavier Fernandez 2018-11-07 10:50:51 +01:00 committed by GitHub
commit 38298779a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -17,7 +17,7 @@ class PipCommandUsage(rst.Directive):
def run(self):
cmd = commands[self.arguments[0]]
usage = dedent(cmd.usage.replace('%prog', 'pip')).strip()
usage = dedent(cmd.usage.replace('%prog', 'pip {}'.format(cmd.name))).strip()
node = nodes.literal_block(usage, usage)
return [node]

1
news/5984.doc Normal file
View file

@ -0,0 +1 @@
Add command information in usage document for pip cmd