options to disable bluetooth and/or clean bonded (paired) devices (#758)

Signed-off-by: Jussi Vatjus-Anttila <jussiva@gmail.com>
This commit is contained in:
Jussi Vatjus-Anttila
2024-01-31 00:43:23 +02:00
committed by GitHub
parent 806bfa4087
commit a6b5f18941
5 changed files with 76 additions and 3 deletions

View File

@@ -29,6 +29,16 @@ module.exports.builder = function(yargs) {
, type: 'boolean'
, default: true
})
.option('cleanup-disable-bluetooth', {
describe: 'Whether to disable Bluetooth during cleanup.'
, type: 'boolean'
, default: false
})
.option('cleanup-bluetooth-bonds', {
describe: 'Whether to remove Bluetooth bonds during cleanup.'
, type: 'boolean'
, default: false
})
.option('connect-port', {
describe: 'Port allocated to adb connections.'
, type: 'number'
@@ -189,6 +199,8 @@ module.exports.handler = function(argv) {
, muteMaster: argv.muteMaster
, lockRotation: argv.lockRotation
, cleanup: argv.cleanup
, cleanupDisableBluetooth: argv.cleanupDisableBluetooth
, cleanupBluetoothBonds: argv.cleanupBluetoothBonds
, screenReset: argv.screenReset
})
}