diff options
Diffstat (limited to 'lib/commands/dist-tag.js')
-rw-r--r-- | lib/commands/dist-tag.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/commands/dist-tag.js b/lib/commands/dist-tag.js index a207e422c..e74a3f1d4 100644 --- a/lib/commands/dist-tag.js +++ b/lib/commands/dist-tag.js @@ -12,9 +12,9 @@ class DistTag extends BaseCommand { static params = ['workspace', 'workspaces', 'include-workspace-root'] static name = 'dist-tag' static usage = [ - 'add <pkg>@<version> [<tag>]', - 'rm <pkg> <tag>', - 'ls [<pkg>]', + 'add <package-spec (with version)> [<tag>]', + 'rm <package-spec> <tag>', + 'ls [<package-spec>]', ] static ignoreImplicitWorkspace = false @@ -90,7 +90,7 @@ class DistTag extends BaseCommand { log.verbose('dist-tag add', defaultTag, 'to', spec.name + '@' + version) if (!spec.name || !version || !defaultTag) { - throw this.usageError() + throw this.usageError('must provide a spec with a name and version, and a tag to add') } const t = defaultTag.trim() |