Giter Site home page Giter Site logo

Comments (3)

nemequ avatar nemequ commented on August 29, 2024

I had been thinking that it would be necessary to allow people to parse their own options, too, but I think with #7 we could have something completely generic which would still be powerful enough to accommodate pretty much everyone.

from munit.

jibsen avatar jibsen commented on August 29, 2024

You could parse options until -- (normal end of arguments), or --args (bit like gdb), and then leave the rest to the user code? I realize there are a lot of options here and what works will depend on use case.

I just know the first thing I did after compiling was example --help 😊.

from munit.

nemequ avatar nemequ commented on August 29, 2024

I hadn't really considered that, though TBH I'm not really a fan. It's good if you are going to exec something else, but IMHO it's a bit weird for something like this. On the plus side, it would allow you to handle nonoptions fairly elegantly, which is something I hadn't figured out.

If Β΅nit supported parameterized tests, though, the use case for customizing the CLI becomes much smaller. The generic interface could handle something like ./run-tests --params "codec=zlib,level=3" /buffer/compress /single-byte/compress /single-byte/decompress.

from munit.

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.