Git Product home page Git Product logo

Comments (8)

cowboy avatar cowboy commented on May 27, 2024

The grunt --tasks option requires an additional argument, which is a directory path to scan for task files. See grunt --help for more information.

from grunt-cli.

LandonSchropp avatar LandonSchropp commented on May 27, 2024

I don't think this issue should be closed. The task should display an error message to the user rather than a stack trace. The stack trace isn't actionable to a user. Furthermore, in my opinion the documentation isn't clear about what the flag expects. Besides, why can't grunt --tasks use the current directory by default?

from grunt-cli.

cowboy avatar cowboy commented on May 27, 2024

The way the command line parser works is that because --tasks expects an additional argument, it will consume whatever follows it. Doing grunt mytask --tasks ./tasksdir will work the same as grunt --tasks ./tasksdir mytask. But they will behave totally differently if you omit the necessary argument after --tasks.

That being said, I'm all for better error messages. Can you open a ticket about improving error messages with misused command line options?

from grunt-cli.

cowboy avatar cowboy commented on May 27, 2024

(And reference this ticket, too)

from grunt-cli.

guillermo avatar guillermo commented on May 27, 2024

Ok. Thanks. Went through the same process.

Used to rake -T, run grunt --tasks and start googling.

from grunt-cli.

ulidtko avatar ulidtko commented on May 27, 2024

Uhhh. So, again, how do I list available tasks?..

Seeing a traceback is not particularly enlightening when a user wants to do something very simple.

from grunt-cli.

bisrael avatar bisrael commented on May 27, 2024

@ulidtko -- do grunt -h and you'll see the available tasks after all of the options you can pass.

from grunt-cli.

shamess avatar shamess commented on May 27, 2024

Thanks, @bisrael. That was what I was looking for too - didn't spot it first time around.

from grunt-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.