« get me outta code hell

Add --selector alias for --picker - http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorLiam <towerofnix@gmail.com>2017-07-08 05:55:42 +0000
committerLiam <towerofnix@gmail.com>2017-07-08 05:55:42 +0000
commitc224db2a92208937340df1a3540212003d8c2d54 (patch)
treec295d18802be67a92a825aaf25656d152444b03f /src
parent9999b5db37d3edfb3106982647e8a4267bf727c6 (diff)
Add --selector alias for --picker
Diffstat (limited to 'src')
-rwxr-xr-xsrc/http-music.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/http-music.js b/src/http-music.js
index e926e5d..480808d 100755
--- a/src/http-music.js
+++ b/src/http-music.js
@@ -210,13 +210,15 @@ Promise.resolve()
       'np': util => util.alias('-no-play'),
 
       '-picker': function(util) {
-        // --picker <picker type>
+        // --picker <picker type>  (alias: --selector)
         // Selects the mode that the song to play is picked.
         // See pickers.js.
 
         pickerType = util.nextArg()
       },
 
+      '-selector': util => util.alias('-picker'),
+
       '-play-opts': function(util) {
         // --play-opts <opts>
         // Sets command line options passed to the `play` command.