Skip to content

Commit 9315cb6

Browse files
committed
Rename rm to remove
1 parent 05a953a commit 9315cb6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pip/commands/cache.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ class CacheCommand(Command):
2727
Show information about the caches.
2828
list (wheel cache only):
2929
List filenames of wheels stored in the cache.
30-
rm <pattern|packagename> (wheel cache only):
31-
Remove one or more wheels from the cache. `rm` accepts one or more
30+
remove <pattern|packagename> (wheel cache only):
31+
Remove one or more wheels from the cache. `remove` accepts one or more
3232
package names, filenames, or shell glob expressions matching filenames.
3333
purge:
3434
Remove all items from the cache.
3535
""" # noqa
36-
actions = ["info", "list", "rm", "purge"]
36+
actions = ["info", "list", "remove", "purge"]
3737
name = "cache"
3838
usage = """
3939
%%prog [options] %s""" % "|".join(actions)
@@ -126,10 +126,10 @@ def action_list(self, options, args):
126126
logger.info(os.linesep.join(wheels))
127127
return SUCCESS
128128

129-
def action_rm(self, options, args):
129+
def action_remove(self, options, args):
130130
if options.type != "wheel":
131131
raise CommandError(
132-
"pip cache rm only operates on the wheel cache.")
132+
"pip cache remove only operates on the wheel cache.")
133133
if len(args) == 0:
134134
raise CommandError(
135135
"Must specify the filename of (a) wheel(s) to remove.")

0 commit comments

Comments
 (0)