Added arguments for intent options.

This commit is contained in:
Jamie Edge
2014-06-21 12:22:20 +01:00
parent 2a9ad6ea70
commit 1aeee167c7
3 changed files with 37 additions and 5 deletions

View File

@@ -511,8 +511,40 @@ var args = [
, help: 'Absolute path to directory Appium can use to manage temporary ' +
'files, like built-in iOS apps it needs to move around. On *nix/Mac ' +
'defaults to /tmp, on Windows defaults to C:\\Windows\\Temp'
}]
}],
[['--intent-action'], {
dest: 'intentAction'
, defaultValue: "android.intent.action.MAIN"
, required: false
, example: "android.intent.action.MAIN"
, help: "(Android-only) Intent action which will be used to start activity"
}],
[['--intent-category'], {
dest: 'intentCategory'
, defaultValue: "android.intent.category.LAUNCHER"
, required: false
, example: "android.intent.category.APP_CONTACTS"
, help: "(Android-only) Intent category which will be used to start activity"
}],
[['--intent-flags'], {
dest: 'intentFlags'
, defaultValue: "0x10200000"
, required: false
, example: "0x10200000"
, help: "(Android-only) Flags that will be used to start activity"
}],
[['--intent-args'], {
dest: 'optionalIntentArguments'
, defaultValue: null
, required: false
, example: "0x10200000"
, help: "(Android-only) Additional intent arguments that will be used to " +
"start activity"
}]
];
// Setup all the command line argument parsing