« get me outta code hell

Update man pages to reflect new picker changes - http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2017-08-11 10:19:12 -0300
committerFlorrie <towerofnix@gmail.com>2017-08-11 10:19:12 -0300
commit490d584a9a393a29cac08fc28223b0a7b6f802dc (patch)
treef9039045967435f2424f9234740e227b127ea4b3
parent6d063af2b57841dce30ddb07bf60ce828d737697 (diff)
Update man pages to reflect new picker changes
-rw-r--r--man/http-music-play.112
-rwxr-xr-xsrc/play.js4
2 files changed, 12 insertions, 4 deletions
diff --git a/man/http-music-play.1 b/man/http-music-play.1
index 2237563..9e4bc71 100644
--- a/man/http-music-play.1
+++ b/man/http-music-play.1
@@ -87,6 +87,12 @@ Lists all groups and tracks in the (active) playlist.
 If this is the last option used, nothing plays (see \fB\-\-play\fR).
 
 .TP
+.BR \-\-loop\-mode ", " \-\-loop
+Sets the mode by which the playback order list is looped (typically, what happens when the picker's index counter gets to the end of the list).
+Valid options include \fBno-loop\fR (or \fBno\fR), \fBloop-same-order\fR (or \fBloop\fR), \fBloop-regenerate\fR (the default), and \fBpick-random\fR.
+See also \fB\-\-sort\-mode\fR.
+
+.TP
 .BR \-np ", " \-\-no\-play
 Forces the playlist not to play.
 See also \fB\-\-play\fR.
@@ -122,6 +128,12 @@ Prints the JSON representation of the active playlist to the console.
 Removes a group from the (active) playlist.
 
 .TP
+.BR \-\-sort\-mode ", " \-\-sort
+Sets the mode by which the playback order list is sorted.
+Valid options include \fBorder\fR, \fBshuffle\fR (the default), and \fBshuffle-top-level\fR (or \fBshuffle-groups\fR).
+See also \fB\-\-loop\-mode\fR.
+
+.TP
 .BR \-w ", " \-\-write\-playlist ", " \-\-write ", " \-\-save " \fIfilePath\fR"
 Writes the active playlist to a file.
 This file can later be used with \fB\-\-open\fR; you won't need to stick in all the filtering options again.
diff --git a/src/play.js b/src/play.js
index 408b79c..980a755 100755
--- a/src/play.js
+++ b/src/play.js
@@ -280,8 +280,6 @@ async function main(args) {
     '-sort-mode': function(util) {
       // --sort-mode <mode>  (alias: --sort)
       // Sets the mode by which the playback order list is sorted.
-      // Valid options include 'order', 'shuffle', and 'shuffle-top-level'
-      // (which has an alias 'shuffle-groups').
       // See pickers.js.
 
       pickerSortMode = util.nextArg()
@@ -294,8 +292,6 @@ async function main(args) {
       // Sets the mode by which the playback order list is looped (typically,
       // what happens when the picker's index counter gets to the end of the
       // list).
-      // Valid options include 'no-loop', 'loop-same-order' (or 'loop'),
-      // 'loop-regenerate', and 'pick-random'.
       // See pickers.js.
 
       pickerLoopMode = util.nextArg()