Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v4 - Command project - Trouble with args #1383

Closed
jenovateurs opened this issue Nov 27, 2019 · 3 comments
Closed

v4 - Command project - Trouble with args #1383

jenovateurs opened this issue Nov 27, 2019 · 3 comments
Assignees
Milestone

Comments

@jenovateurs
Copy link
Contributor

jenovateurs commented Nov 27, 2019

Tested with Debian Stretch.

With Phalcon DevTools (3.4.8), the command :
phalcon project hello_world simple –-template-engine=volt
Does this:

Success: Controller "index" was successfully created.

/var/www/html/hello_world/app/controllers/IndexController.php

  Success: Project 'hello_world' was successfully created.
Please choose a password and username to use Database connection.Used default:'root' without password.

The created folder is hello_world

With Phalcon DevTools (4.0.0-beta.2) from the branch 4.0.x
Does this:

Phalcon DevTools (4.0.0-beta.2)

Success: Controller "index" was successfully created.

 Info: /var/www/html/phalcon-devtools/–-template-engine=volt/hello_world/app/controllers/IndexController.php

 Success: Project 'hello_world' was successfully created.

 Info: Please choose a password and username to use Database connection.

 Info: Used default: 'root' without password.

The created folder is –-template-engine=volt not hello_world.

@Jeckerson Jeckerson self-assigned this Nov 27, 2019
@Jeckerson Jeckerson added this to the 4.0.0 milestone Nov 27, 2019
@Jeckerson
Copy link
Member

What is even more strange, is that it creates both, correctly and incorrectly just randomly...

image

@Jeckerson
Copy link
Member

Jeckerson commented Nov 28, 2019

Well, it doesn't work for you, because you have special character in your command:

–-template-engine=volt
^

!= -

That's why it is interpreted as 3d argument and not as option. And third argument is directory name where to save.

@jenovateurs
Copy link
Contributor Author

@Jeckerson Good catch, thanks for taking the time to look at it.
To give you some context, I have copied the original command from a Word file. I think that when two dash follow one another, Word converts the dash into a special character.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants