cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Josh Soref <>
Subject Re: [DISCUSS] Tools Release
Date Mon, 05 Jan 2015 19:56:53 GMT
Murat Sutunc wrote:
> I've mentioned this compatibility issue with my first feature discussion
> 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

$ 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>]

View raw message