Tizen SDK : CLI - Error: No argument is allowed: –p


        The Samsung OS - Tizen with command line you can easier create project via programmer style but not anything will be fine sometime an error occur but not clearly description or clearly sample that could be work 100%.


When you want to create project via Tizen CLI - Command line interface like below in Terminal.


tizen create web-project –p mobile-2.3 –t WebSinglePageApplication –n TizenEnchantjs -- /Users/poraweeraksasin/workspace_tizen

Press enter and you will got an error similar this.


Error: No argument is allowed: –p

Usage:  tizen create web-project [args]
 -- working directory                  Specify where the base directory is for
                                        the command
 --help (-h)                           Show detailed explanation for given
                                        command
 --name (-n) project name              Specify project name.
 --profile (-p) profile name           Specify profile name. (Required)
 --type (-t) predefined template name  Specify template name. (Required)


But when you check from official format
tizen create web-project p mobile-2.3 t basic_ui n basic -- /home/workspace

It should be correct BUT never success, so after i'm try out the true structure must be switch position of arguments like this.
tizen create web-project -- /home/workspace p mobile-2.3 t basic_ui n basic
Move a part of argument [ -- working_directory ] to be after [ web-project ] leave other arguments as original structure.


tizen create web-project -- /Users/poraweeraksasin/Desktop/AIREnchantjs_proj/tizen -p mobile-2.3 -t WebSinglePageApplication -n TizenEnchantjs

Now press enter again, the project should be create success like below.


-----------------------------------------------------
Starting web-project
-----------------------------------------------------

Project Location: /Users/poraweeraksasin/Desktop/AIREnchantjs_proj/tizen/TizenEnchantjs
-----------------------------------------------------
Finished web-project


Check in your working directory will be similar as below image.


Test Environment:
- Macbook Pro 13" Retina
- OS X El Capitan
- Tizen SDK

It's work :)


Comments