You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Sergey Grebnov (JIRA)" <ji...@apache.org> on 2014/06/19 22:02:24 UTC

[jira] [Comment Edited] (CB-6024) nopt refactoring

    [ 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:01 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)