Giter VIP home page Giter VIP logo

Comments (2)

jaz303 avatar jaz303 commented on July 30, 2024

Multiple task support is desirable; I use it frequently with rake/capistrano.

We could adopt the unix-y idiom of using a double-dash to separate user arguments from switches/flags. This would give us an officially sanctioned mechanism for passing positional arguments:

task('dump', function($app) {
  $dump = $app[0];
  echo file_get_contents($dump);
});

To invoke:

phake dump -- index.php

What do you think?

from phake.

clue avatar clue commented on July 30, 2024

Multiple task support is desirable

Turns out I was wrong. Phake does support running multiple tasks. So the provided example does work as expected and returns ab.

The Phakefile that led me to file this issue actually invoked a pcntl_exec() which does not return. My bad.

We could adopt the unix-y idiom of using a double-dash to separate user arguments [...]. What do you think?

Using a double dash makes perfect sense and would be a nice feature. Though I still think passing positional arguments without special syntax would still be even better. Anyway, I'll file a new ticket to keep track of this discussion.

from phake.

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.