Git Product home page Git Product logo

optarg's People

Contributors

mosop avatar porras avatar sija avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

optarg's Issues

Using optarg to implement a simple cli

As an experiment... But it's not clear to me how I correctly bring in the ARGC and ARGV from the command line into the option parsing.

Or do I totally misunderstand what I am doing? (I am an experienced programmer by the way.)

Can't use some names for options

I've tried to use a few common names for options that haven't worked with optarg. Examples

  • -1, eg to specify output on one line
  • -A, eg to turn off whatever -a does
  • punctuation, like -?
  • other capital letters, like -D

What would it take to support those as options? I'm happy to assist in adding those capabilities if you're interested.

Feature Request โ€“ Silent Unknowns

I have a use case where I want to create an OptArg model which checks for "sub commands" and then I find another OptArg model based on the subcommand.

At the moment, because any extra options besides the sub commands cause an UnknownOption exception to be thrown it prevents me from being able to elegantly handle things this way.

Is there room for a feature which allows for Silent unknown options? If so what would be the best way to implement so I can create a pull request?

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.