Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8909009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:19:46+00:00 2026-06-15T03:19:46+00:00

The documentation I’ve seen for Cakefiles seems to be by example, where this serves

  • 0

The documentation I’ve seen for Cakefiles seems to be by example, where this serves as a typical example:

option '-v', '--verbose [TRUE|FALSE]', 'Turn verbosity on/off (off by default)'
task 'spec', 'run specs', (options) ->
  jasmine = require 'jasmine-node'
  # ...

But what happens when I want this:

option '-v', '--verbose [TRUE|FALSE]', 'Turn verbosity on/off (off by default)'
task 'spec', 'run specs', (options) ->
  jasmine = require 'jasmine-node'
  # ...

option '-d', '--directory [PATH]', 'specific directory to set up the widget in'
task 'createWidgets', 'create the widgets', (options) ->
  console.log options.verbose

Options are specific to the file, not the task, which means that (a) options bleed into all tasks in the file, and (b) when running cake, it’s not clear to the user which options are associated with which tasks.

How do I associate options with particular tasks?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T03:19:47+00:00Added an answer on June 15, 2026 at 3:19 am

    There isn’t a way to add task-specific options via any of the functions provided by cake.coffee — if you look at the source you’ll see that options are handled globally. You could write that code yourself, extracting options on a per-task basis by writing code that reads off node’s process.argv. However, cake.coffee is really quite a bare-bones build tool, and I wouldn’t recommend it for anything more than the simplest build systems. You might want to look at something like rake or make instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The documentation for the /m option in perlre says this: Treat string as multiple
The documentation has an example of using an ArrayController with this template: {{#each MyApp.listController}}
The documentation provides an example: aContainer = Ember.ContainerView.create({ childViews: ['aView', 'bView', 'cView'], aView: Ember.View.create(),
The documentation states that leveraging the --soft option ...Does not touch the index file
Documentation can be found here It says in the example: onDrop: Called whenever a
The documentation indicates that the error: option function will make available: XHR instance, a
Documentation state that dontEscape is deprecated and always false . However it actually works.
Documentation for GStreamer is confusing. This is still no excuse for resorting to StackOverflow.com
The documentation is really vague about subclassing the CommandLineApp, only mentioning one example: class
The documentation of some JavaScript APIs shows the following snippets as an example of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.