cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Grebnov (JIRA)" <>
Subject [jira] [Commented] (CB-6024) nopt refactoring
Date Thu, 19 Jun 2014 20:00:27 GMT


Sergey Grebnov commented on CB-6024:

What is the recommended way of adding additional platform specific parameters after this change?
For example, for Windows 8.1 and Universal Apps whether we will support both Windows 8.1 and
Windows Phone 8.1 we will want to add additional parameter to 'cordova emulate' to specify
whether to run build on Windows or Windows Phone, for example

cordova windows emulate --phone <-test windows phone 8.1
cordova windows emulate --store <- test windows8.1
cordova windows emulate --store80 <- test windows8

Right now all new unknown parameters are ignored and not passed to downstream. I see that
special '--' arg could be used to pass additional ars but I don't think this will be very
nature to require users to use '--', like
cordova windows emulate -- --phone

So it looks like any change in supported platform args will require cordova-cli update. So
we won't be able to release platform w/o releasing cordova-cli.

Any recommendations or ideas?

> nopt refactoring
> ----------------
>                 Key: CB-6024
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: CLI, Plugman
>    Affects Versions: 3.3.0
>         Environment: Windows, Mac OSX
>            Reporter: Jonathan Bond
>            Assignee: Mark Koudritsky
>              Labels: patch
>             Fix For: 3.6.0
> As per mailing list:
> - Refactoring cli to use nopt. 
> - Several improvements to the install/uninstall tests to touch the file system.
> - Consistency improvements in the code

This message was sent by Atlassian JIRA

View raw message