Allow master volume to be always muted.

This commit is contained in:
Simo Kinnunen
2017-09-22 17:07:45 +09:00
parent cc5d7580c2
commit 2351025f6f
5 changed files with 66 additions and 14 deletions

View File

@@ -66,8 +66,20 @@ module.exports.builder = function(yargs) {
, type: 'boolean'
})
.option('mute-master', {
describe: 'Whether to mute master volume when devices are being used.'
, type: 'boolean'
describe: 'Whether to mute master volume.'
, choices: ['always', 'inuse', 'never']
, default: 'never'
, coerce: val => {
if (val === true) {
return 'inuse' // For backwards compatibility.
}
if (val === false) {
return 'never' // For backwards compatibility.
}
return val
}
})
.option('provider', {
alias: 'n'