0
0
mirror of https://github.com/tj/n.git synced 2024-11-28 10:26:23 +01:00

Added - alias of rm

This commit is contained in:
Tj Holowaychuk 2011-01-05 08:23:02 -08:00
parent acea331b67
commit e2ce5084e6
2 changed files with 5 additions and 1 deletions

View File

@ -34,6 +34,10 @@ Remove some versions:
$ n rm 0.2.4 0.3.0 $ n rm 0.2.4 0.3.0
Instead of using `rm` we can simply use `-`:
$ n - 0.2.4
## Usage ## Usage
Output from `n --help`: Output from `n --help`:

2
bin/n
View File

@ -180,7 +180,7 @@ else
case $1 in case $1 in
-V|--version) display_n_version ;; -V|--version) display_n_version ;;
-h|--help) display_help ;; -h|--help) display_help ;;
rm) shift; remove_version $@; exit ;; rm|-) shift; remove_version $@; exit ;;
*) install_node $@; exit ;; *) install_node $@; exit ;;
esac esac
shift shift