mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-17 23:53:25 +02:00
Add option to control screen resetting on device release
This commit is contained in:
@@ -108,6 +108,12 @@ module.exports.builder = function(yargs) {
|
||||
, type: 'number'
|
||||
, demand: true
|
||||
})
|
||||
.option('screen-reset', {
|
||||
describe: 'Go back to home screen and reset screen rotation ' +
|
||||
'when user releases device. Negate with --no-screen-reset.'
|
||||
, type: 'boolean'
|
||||
, default: true
|
||||
})
|
||||
.option('screen-ws-url-pattern', {
|
||||
describe: 'The URL pattern to use for the screen WebSocket.'
|
||||
, type: 'string'
|
||||
@@ -165,5 +171,6 @@ module.exports.handler = function(argv) {
|
||||
, muteMaster: argv.muteMaster
|
||||
, lockRotation: argv.lockRotation
|
||||
, cleanup: argv.cleanup
|
||||
, screenReset: argv.screenReset
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user