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

ASF subversion and git services commented on CB-5248:
-----------------------------------------------------

Commit 6490967289e5116b69ef33f1c0a81facdb92ac18 in branch refs/heads/master 
from [~jsoref]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-cli.git;h=6490967 ]

CB-5248 Fix cordova create directory_name com.example.app AppName extra_arg

Follow up to CB-4748
* Treat string as fourth argument to `cordova create` as JSON
* Properly document arguments to `cordova create` in `cordova help`


> Adding additional arguments for 'cordova create' will break your project
> ------------------------------------------------------------------------
>
>                 Key: CB-5248
>                 URL: https://issues.apache.org/jira/browse/CB-5248
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 3.1.0
>            Reporter: JennyGee
>            Priority: Minor
>             Fix For: 3.3.0
>
>
> According to the help docs cordova has the following for create:
> create <PATH> [ID] [NAME] where ID and NAME are optional.
> When you add an additional parameter after NAME, you get a error stating that 
> it doesn't understand the last parameter. On the other hand the cordova 
> project appears to be created properly. But when you have a look at the 
> actual project, it's actually broken:
> myMachine:cordovaTest jgee$ cordova create newDir newPackage app1 app2
> Creating a new cordova project with name "app1" and id "newPackage" at 
> location "../cordovaTest/newDir"
> [TypeError: Object.keys called on non-object]
> myMachine:cordovaTest jgee$ cd newDir/
> ci0000003068684:newDir jgee$ ls
> merges                platforms       plugins         www
> myMachine:newDir jgee$ cordova info
> { [Error: ENOENT, no such file or directory 
> '..cordovaTest/newDir/www/config.xml']
>   errno: 34,
>   code: 'ENOENT',
>   path: '..cordova/newDir/www/config.xml',
>   syscall: 'open' }



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to