diff options
-rw-r--r-- | man/http-music-play.1 | 12 | ||||
-rwxr-xr-x | src/play.js | 4 |
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() |