Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ritmos
Copy link
Contributor

@ritmos ritmos commented Jun 20, 2020

Explains more clearly that parameter is optional and can be provided by .nvmrc on nvm install, nvm use, nvm exec and nvm run.

…ional and can be provided by .nvmrc on `nvm install`, `nvm use`, `nvm exec`, and `nvm run`.
nvm.sh Outdated
nvm_echo ' nvm cache clear Empty cache directory for nvm'
nvm_echo ' nvm --help Show this message'
nvm_echo ' nvm --version Print out the installed version of nvm'
nvm_echo ' nvm install [-s] [<version>] Download and install a <version>, [-s] from source. Uses .nvmrc as <version> provider if available'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't think we need all this extra "as version provider" text; if you don't know what .nvmrc is, it's explained elsewhere, and if you do, you know it's providing a version.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have put the 'as provider' to better explain the source of the optional parameter. In any case the important part of this PR are the brackets around the and not this comment. Brackets should be there to keep consistency with other commands of nvm because they denote optionality.

If you agree with the brackets addition and not with the 'as provider' part let me make another PR

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with the brackets for sure :-) i'm just not as convinced on the "as provider" part.

Please don't make another PR; let's just update this one.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! I have updated it.

Regards

@ljharb ljharb merged commit 06c3bf6 into nvm-sh:master Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants