diff --git a/Readme.md b/Readme.md index 9eedf39..61529ad 100644 --- a/Readme.md +++ b/Readme.md @@ -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`: diff --git a/bin/n b/bin/n index 574e5ea..231d6c6 100755 --- a/bin/n +++ b/bin/n @@ -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