Coder Social home page Coder Social logo

Comments (4)

asika32764 avatar asika32764 commented on June 4, 2024

Hmm, In my experience it is an expected result if you add a string just after any option tag, it will look as the option's value.

I don't know what other console framework will do but this parsing method is fork from Joomla Clinput, so I just keep the same convention.

Is there any other CLI program ignore single letter option that I can reference to?

from php-simple-console.

asika32764 avatar asika32764 commented on June 4, 2024

OK, I can confirm composer will ignore single letter too.

If it is a convention of community, we should follow this way.

from php-simple-console.

asika32764 avatar asika32764 commented on June 4, 2024

But npm minimist uses same way as SimpleConsole.
https://www.npmjs.com/package/minimist

180319-0002

So I need more caes to research. Or simply add a property to toggle this function.

from php-simple-console.

MrPetovan avatar MrPetovan commented on June 4, 2024

While working on my console, I was looking at what the git console command does. Single-letter options don't take values by default except for specific ones that are identified in the help.

from php-simple-console.

Related Issues (4)

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.