0
0
mirror of https://github.com/tj/n.git synced 2024-11-24 19:46:56 +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
Instead of using `rm` we can simply use `-`:
$ n - 0.2.4
## Usage
Output from `n --help`:

2
bin/n
View File

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