GithubHelp home page GithubHelp logo

zhengqiaowang / jargsparser Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 0.0 468 KB

A head-only arguments parser(argsparser) c++11 lib 一个只有一个头文件的C++11参数解析库

License: MIT License

CMake 0.19% C++ 99.81%
argument-parser cpp cpp11 header-only library single-file single-file-library argsparse argsparse-library argument-parsing

jargsparser's Introduction

jargsparser's People

Contributors

zhengqiaowang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

jargsparser's Issues

bug: 位置参数不可以使用LIST类型的参数

Describe the bug
在使用位置参数的时候无法使用LIST类型的参数

To Reproduce
在一个位置参数上设置为LIST_INT,然后只能获取第一个值

Expected behavior
获取LIST所有值

fix: show_all compile warnings

when github action build:

/home/runner/work/JArgsParser/JArgsParser/example/show_all.cpp: In function ‘int main(int, const char**)’:
/home/runner/work/JArgsParser/JArgsParser/example/show_all.cpp:12:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=]
   12 |         printf("(" #TYPE ") " #KEY ": " #FMT "\n", b); \
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~
      |                                                    |
      |                                                    long int
/home/runner/work/JArgsParser/JArgsParser/example/show_all.cpp:84:5: note: in expansion of macro ‘GET_ARGS’
   84 |     GET_ARGS("a", long, "%d");
      |     ^~~~~~~~
/home/runner/work/JArgsParser/JArgsParser/example/show_all.cpp:12:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
   12 |         printf("(" #TYPE ") " #KEY ": " #FMT "\n", b); \
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~
      |                                                    |
      |                                                    long unsigned int
/home/runner/work/JArgsParser/JArgsParser/example/show_all.cpp:86:5: note: in expansion of macro ‘GET_ARGS’
   86 |     GET_ARGS("a", unsigned long, "%d");
      |     ^~~~~~~~

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.