Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Display aliases in -h message #12485

Closed
wants to merge 3 commits into from
Closed

Conversation

watilde
Copy link
Contributor

@watilde watilde commented Apr 26, 2016

Get alias list from config/cmd-list.js and use it to display aliases in -h message like:

$ npm -h view
npm view [<@scope>/]<pkg>[@<version>] [<field>[.subfield]...]

aliases: v, show, info

@iarna iarna added this to the next-next milestone Apr 27, 2016
@iarna
Copy link
Contributor

iarna commented Apr 28, 2016

This is a nice little refactoring. LGTM. =)

@iarna iarna modified the milestones: next, next-next Apr 28, 2016
iarna pushed a commit that referenced this pull request Apr 28, 2016
iarna pushed a commit that referenced this pull request Apr 28, 2016
iarna pushed a commit that referenced this pull request Apr 28, 2016
This also helps by DRYing up our lists of command aliases.

Credit: @watilde
Reviewed-By: @iarna
PR-URL: #12485
@iarna
Copy link
Contributor

iarna commented May 2, 2016

This was merged in 3.8.9, thank you! =)

@iarna iarna closed this May 2, 2016
@watilde watilde deleted the patch/usage-alias branch May 3, 2016 08:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants