Skip to content

Commit

Permalink
Merge pull request #5986 from Albert-Guan/ISSUE5984
Browse files Browse the repository at this point in the history
Issue5984
  • Loading branch information
xavfernandez committed Nov 7, 2018
2 parents eeee9b8 + 8882f42 commit 3829877
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pip_sphinxext.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
1 change: 1 addition & 0 deletions news/5984.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add command information in usage document for pip cmd

0 comments on commit 3829877

Please sign in to comment.