Giter Site home page Giter Site logo

kongaskristjan / fire-hpp Goto Github PK

View Code? Open in Web Editor NEW
446.0 10.0 17.0 236 KB

A C++ library that uses clever tricks to create super low-code, yet fully functional CLIs

License: Boost Software License 1.0

CMake 3.22% C++ 81.86% Python 14.93%
argument-parser cli library

fire-hpp's Introduction

For business/contract/employment queries, please message on Linkedin. You can also contact me using the method described here.

fire-hpp's People

Contributors

cxkoda avatar eigenwhat avatar kongaskristjan 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  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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fire-hpp's Issues

Add a dedicated LICENSE file

This makes packaging fire-hpp easier and makes it also easier to automatically detect and identify the license

licensing

This is such a great repo, really love what you're doing! Even in the early stages this project is useful and ready for certain production environments.

It's difficult to consume though without understanding what the licensing requirements will be.

The description string does not work as documented

When I provide a help description string, it is used as a default instead of a description:

int fired_main(std::string file = fire::arg(0, "<first>"))

When I run this as of commit 2a562ff, I get:

$ ./build/colormapper.exe --help

Usage:
  C:\git\maph\submodules\colormapper\build\colormapper.exe [<0>]

Options:
  [<0> STRING]   [default: <first>]

<first> becomes the default value instead of the description. I tried this with an int positional argument as well std::string and it has the same problem.

Thank you for the header! This is an interesting project and it looks promising to reduce boilerplate.

What about "--" to separate positional arguments?

Ideally a command line parsing library should support -- to separate positional arguments from options., to support CLI interface like this:

$ touch -- -actual-file-with-dash-prefix
$ ls -l -- -actual-file-with-dash-prefix
-rw-r--r-- 1 bronek users 0 Aug  8 19:03 -actual-file-with-dash-prefix
$ rm -- -actual-file-with-dash-prefix

BTW, this is lovely library, thank you for doing it!

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.