Murat Sutunc wrote: > I've mentioned this compatibility issue with my first feature discussion >mail. > Currently in case a platform doesn't support --list flag, > CLI will ignore the flag and run as if the flag is not provided (due to >current args parsing logic in platforms), > it won't be breaking any platform. > I might be able to help with the compatibility issues if you need any >assistance.
$ cordova run --list
Running command: /tmp/aa/platforms/android/cordova/run --list
Running command: /tmp/aa/platforms/blackberry10/cordova/run --list
error: unknown option `--list'
ERROR running one or more of the platforms: Error:
/tmp/aa/platforms/blackberry10/cordova/run: Command failed with exit code 1
You may not have the required environment or OS to run this project
Available Android Devices:
Available Android Virtual Devices:
This output is really bad.
I'm pretty unhappy that the changes were landed as is, and I intend to
revert them.
Here's the design I'd like to see:
cordova target[s] list PLATFORM* [devices|emulators]
This shouldn't require any change to any of the platforms, since each
platform should already support the list-* commands.
It also works in the direction of:
cordova target add [PLATFORM] targetname -- …
Which would match more or less what webworks uses:
webworks target add <target_id> <ip-address> [ -t device | simulator]
[-p <password>] [--pin <device-pin>]
https://developer.blackberry.com/html5/documentation/v2_2/setting_up_test_t
argets.html
smime.p7s
Description: S/MIME cryptographic signature
