Coder Social home page Coder Social logo

Comments (4)

thisismygitrepo avatar thisismygitrepo commented on July 29, 2024

it worked, I just had to push recipe to come after the optional arguments. But still, it should work either way.

from just.

runeimp avatar runeimp commented on July 29, 2024

It would be next to impossible to allow both ways. What if a recipe that is called can accept options that have meaning to Just? If you allowed both how would you specify that the option that was written after a recipe was actually for Just and not the recipe?

from just.

thisismygitrepo avatar thisismygitrepo commented on July 29, 2024

You're right, that would be confusing. I think it customarily handled with -- to indicate that whatever comes next is arguments for the command called.

from just.

runeimp avatar runeimp commented on July 29, 2024

Yes, but many (most ?) people forget about --. It is also a UNIX standard to put all options for a command after the command and before all other arguments. Depending on the command there is no possible consequence to putting options anywhere on the command line. But that is only true for a relatively small subset of all common commands on a system. Allowing this but requiring -- to avoid issues is error prone and can fail without explanation depending on the contents of the target recipe or possibly sup recipe calls. Where as it stands currently it just fails immediately and is easy to recognize and recover from.

from just.

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.