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

fop:add-hook simplier syntax #106

Open
SebSept opened this issue Mar 18, 2021 · 1 comment
Open

fop:add-hook simplier syntax #106

SebSept opened this issue Mar 18, 2021 · 1 comment
Labels
enhancement small improvement question Further information is requested

Comments

@SebSept
Copy link
Contributor

SebSept commented Mar 18, 2021

The command is really verbose and not fun to use.

My first attempt to use this command are always :
./bin/console fop:add-hook MyNewHook
But that's not correct the expected syntax is
./bin/console fop:add-hook --name MyNewHook --title 'who cares?' --description 'not me'
This is long, I have the feelling to loose time providing this information I judge useless.

./bin/console fop:add-hook --name MyNewHook or
./bin/console fop:add-hook --name MyNewHook --no-interaction (currently fails)

I suggest to ask for description and title only when no parameters at all are provided.

@tom-combet
Copy link
Contributor

I strongly agree with that, I'll probably do a PR soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement small improvement question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants