diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/play.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/play.js b/src/play.js index 7023d9f..fee1b79 100755 --- a/src/play.js +++ b/src/play.js @@ -48,6 +48,20 @@ setupDefaultPlaylist('./playlist.json') } await processArgv(process.argv, { + '-help': function(util) { + // --help (alias: -h, -?) + // Presents a help message. + + console.log('http-music\nTry man http-music!') + + if (util.index === util.argv.length - 1) { + shouldPlay = false + } + }, + + 'h': util => util.alias('-help'), + '?': util => util.alias('-help'), + '-open': async function(util) { // --open <file> (alias: -o) // Opens a separate playlist file. |