cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Grebnov (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CB-6024) nopt refactoring
Date Thu, 19 Jun 2014 20:04:27 GMT

    [ https://issues.apache.org/jira/browse/CB-6024?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14037775#comment-14037775
] 

Sergey Grebnov edited comment on CB-6024 at 6/19/14 8:02 PM:
-------------------------------------------------------------

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?


was (Author: sgrebnov):
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: https://issues.apache.org/jira/browse/CB-6024
>             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
(v6.2#6252)

Mime
View raw message