mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 06:54:03 +02:00
Add option to control screen resetting on device release
This commit is contained in:
@@ -156,6 +156,12 @@ module.exports.builder = function(yargs) {
|
||||
, type: 'string'
|
||||
, default: 'localhost'
|
||||
})
|
||||
.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('serial', {
|
||||
describe: 'Only use devices with these serial numbers.'
|
||||
, type: 'array'
|
||||
@@ -282,6 +288,7 @@ module.exports.handler = function(argv) {
|
||||
.concat(argv.allowRemote ? ['--allow-remote'] : [])
|
||||
.concat(argv.lockRotation ? ['--lock-rotation'] : [])
|
||||
.concat(!argv.cleanup ? ['--no-cleanup'] : [])
|
||||
.concat(!argv.screenReset ? ['--no-screen-reset'] : [])
|
||||
.concat(argv.serial))
|
||||
|
||||
// auth
|
||||
|
||||
Reference in New Issue
Block a user