mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 17:53:24 +02:00
Allow master volume to be always muted.
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user