Calling Developers!
We are reenergizing our code contribution process! Learn More

What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Team need a suggestion I created a custom console command like this vendor/bin/console calculateNu

Options
U03PNFEE6G7
U03PNFEE6G7 Posts: 4 🧑🏻‍🚀 - Cadet

Team need a suggestion

I created a custom console command like this vendor/bin/console calculateNumbers:additionAction -f -3 -s -3
here I am trying to add to negative numbers and landing in issue that command cannot be executed can you help me here

Comments

  • U034FR0514Z
    U034FR0514Z Posts: 7 🧑🏻‍🚀 - Cadet
    Options

    try this calculateNumbers:additionAction -f -- -3 -s -- -3 as it is for linux shell where -- tells that this is not an option but a param

  • U034FR0514Z
    U034FR0514Z Posts: 7 🧑🏻‍🚀 - Cadet
    Options

    if this fails you can just try to use different character like ~3 which will be parsed to -3 by the script