Repository: nvm-sh/nvm
File: nvm.sh (Shell)

Code before:
      nvm_echo '  nvm uninstall <version>                     Uninstall a version'
      nvm_echo '  nvm uninstall --lts                         Uninstall using automatic LTS (long-term support) alias `lts/*`, if available.'
      nvm_echo '  nvm uninstall --lts=<LTS name>              Uninstall using automatic alias for provided LTS line, if available.'
      nvm_echo '  nvm use [--silent] [<version>]              Modify PATH to use <version>. Uses .nvmrc if available'
      nvm_echo '    --lts                                     Uses automatic LTS (long-term support) alias `lts/*`, if available.'
      nvm_echo '    --lts=<LTS name>                          Uses automatic alias for provided LTS line, if available.'
      nvm_echo '  nvm exec [--silent] [<version>] [<command>] Run <command> on <version>. Uses .nvmrc if available'
      nvm_echo '    --lts                                     Uses automatic LTS (long-term support) alias `lts/*`, if available.'
      nvm_echo '    --lts=<LTS name>                          Uses automatic alias for provided LTS line, if available.'
      nvm_echo '  nvm run [--silent] [<version>] [<args>]     Run `node` on <version> with <args> as arguments. Uses .nvmrc if available'
      nvm_echo '    --lts                                     Uses automatic LTS (long-term support) alias `lts/*`, if available.'
      nvm_echo '    --lts=<LTS name>                          Uses automatic alias for provided LTS line, if available.'
      nvm_echo '  nvm current                                 Display currently activated version of Node'
      nvm_echo '  nvm ls [<version>]                          List installed versions, matching a given <version> if provided'
      nvm_echo '    --no-colors                               Suppress colored output'
      nvm_echo '    --no-alias                                Suppress `nvm alias` output'
      nvm_echo '  nvm ls-remote [<version>]                   List remote versions available for install, matching a given <version> if provided'
      nvm_echo '    --lts                                     When listing, only show LTS (long-term support) versions'
      nvm_echo '    --lts=<LTS name>                          When listing, only show versions for a specific LTS line'
      nvm_echo '    --no-colors                               Suppress colored output'
      nvm_echo '  nvm version <version>                       Resolve the given description to a single local version'
      nvm_echo '  nvm version-remote <version>                Resolve the given description to a single remote version'
      nvm_echo '    --lts                                     When listing, only select from LTS (long-term support) versions'
      nvm_echo '    --lts=<LTS name>                          When listing, only select from versions for a specific LTS line'
      nvm_echo '  nvm deactivate                              Undo effects of `nvm` on current shell'
      nvm_echo '    --silent                                  Run nvm deactivate in silent mode'
      nvm_echo '  nvm alias [<pattern>]                       Show all aliases beginning with <pattern>'
      nvm_echo '    --no-colors                               Suppress colored output'
      nvm_echo '  nvm alias <name> <version>                  Set an alias named <name> pointing to <version>'
      nvm_echo '  nvm unalias <name>                          Deletes the alias named <name>'
      nvm_echo '  nvm install-latest-npm                      Attempt to upgrade to the latest working `npm` on the current node version'
      nvm_echo '  nvm reinstall-packages <version>            Reinstall global `npm` packages contained in <version> to current version'
      nvm_echo '  nvm unload                                  Unload `nvm` from shell'
      nvm_echo '  nvm which [current | <version>]             Display path to installed node version. Uses .nvmrc if available'
      nvm_echo '  nvm cache dir                               Display path to the cache directory for nvm'
      nvm_echo '  nvm cache clear                             Empty cache directory for nvm'
      nvm_echo
      nvm_echo 'Example:'
      nvm_echo '  nvm install 8.0.0                     Install a specific version number'
      nvm_echo '  nvm use 8.0                           Use the latest available 8.0.x release'
      nvm_echo '  nvm run 6.10.3 app.js                 Run app.js using node 6.10.3'
      nvm_echo '  nvm exec 4.8.3 node app.js            Run `node app.js` with the PATH pointing to node 4.8.3'
      nvm_echo '  nvm alias default 8.1.0               Set default node version on a shell'
      nvm_echo '  nvm alias default node                Always default to the latest available node version on a shell'
      nvm_echo
      nvm_echo '  nvm install node                      Install the latest available version'
      nvm_echo '  nvm use node                          Use the latest version'
      nvm_echo '  nvm install --lts                     Install the latest LTS version'
      nvm_echo '  nvm use --lts                         Use the latest LTS version'
      nvm_echo
      nvm_echo 'Note:'

Review comment (suggestion):
```suggestion
      nvm_echo '  nvm deactivate [--silent]                   Undo effects of `nvm` on current shell'
```
for consistency with every other command that has `--silent`

Code after:
        nvm_echo '    --no-colors                               Suppress colored output'
        nvm_echo '  nvm version <version>                       Resolve the given description to a single local version'
        nvm_echo '  nvm version-remote <version>                Resolve the given description to a single remote version'
        nvm_echo '    --lts                                     When listing, only select from LTS (long-term support) versions'
        nvm_echo '    --lts=<LTS name>                          When listing, only select from versions for a specific LTS line'
        nvm_echo '  nvm deactivate [--silent]                   Undo effects of `nvm` on current shell'
        nvm_echo '  nvm alias [<pattern>]                       Show all aliases beginning with <pattern>'
        nvm_echo '    --no-colors                               Suppress colored output'
        nvm_echo '  nvm alias <name> <version>                  Set an alias named <name> pointing to <version>'
        nvm_echo '  nvm unalias <name>                          Deletes the alias named <name>'
        nvm_echo '  nvm install-latest-npm                      Attempt to upgrade to the latest working `npm` on the current node version'
        nvm_echo '  nvm reinstall-packages <version>            Reinstall global `npm` packages contained in <version> to current version'
        nvm_echo '  nvm unload                                  Unload `nvm` from shell'
        nvm_echo '  nvm which [--silent] [current | <version>]  Display path to installed node version. Uses .nvmrc if available'
        nvm_echo '  nvm cache dir                               Display path to the cache directory for nvm'
        nvm_echo '  nvm cache clear                             Empty cache directory for nvm'
        nvm_echo
        nvm_echo 'Example:'
        nvm_echo '  nvm install 8.0.0                     Install a specific version number'
        nvm_echo '  nvm use 8.0                           Use the latest available 8.0.x release'
        nvm_echo '  nvm run 6.10.3 app.js                 Run app.js using node 6.10.3'
        nvm_echo '  nvm exec 4.8.3 node app.js            Run `node app.js` with the PATH pointing to node 4.8.3'
        nvm_echo '  nvm alias default 8.1.0               Set default node version on a shell'
        nvm_echo '  nvm alias default node                Always default to the latest available node version on a shell'
        nvm_echo
        nvm_echo '  nvm install node                      Install the latest available version'
        nvm_echo '  nvm use node                          Use the latest version'
        nvm_echo '  nvm install --lts                     Install the latest LTS version'
        nvm_echo '  nvm use --lts                         Use the latest LTS version'
        nvm_echo
        nvm_echo 'Note:'
        nvm_echo '  to remove, delete, or uninstall nvm - just remove the `$NVM_DIR` folder (usually `~/.nvm`)'
        nvm_echo
        return 0;
      ;;
    esac
  done

  local COMMAND
  COMMAND="${1-}"
  shift

  # initialize local variables
  local VERSION
  local ADDITIONAL_PARAMETERS

  case $COMMAND in
    "cache")
      case "${1-}" in
        dir) nvm_cache_dir ;;
        clear)