cxxopts icon indicating copy to clipboard operation
cxxopts copied to clipboard

Lightweight C++ command line option parser

Results 96 cxxopts issues
Sort by recently updated
recently updated
newest added

Hello, I am currently using the cxxopts help function to print usage info for all the options of my program. The thing is that I want to write multiple lines...

Hello, I was trying to mimick a parser built with glibc's argp. argp's built in help option can be invoked with either the -? or the --help option. When I...

enhancement

If you compile and run this attached code [positional.zip](https://github.com/jarro2783/cxxopts/files/5115461/positional.zip) I get these results: ``` bash ./positional --angle=-2 --dp=-9 ``` work as expected, yielding: ``` bash Before parsing: (degrees: true, angle:...

Hi, I have an argument that can be repeated multiple time (let's call it --location). So I declare it as a vector of string. ``` --location paris --location london ```...

enhancement

Trying to run the example compiled with the Intel 18 compiler ``` $ icpc --version icpc (ICC) 18.0.2 20180210 Copyright (C) 1985-2018 Intel Corporation. All rights reserved. ``` with ```...

Sometimes you want to automatically specify a bunch of long options using some strings that you're getting - but some of them are one-character-long. cxxopts will treat them as short...

I found the definition of positional arguments quite confusing. It was not obvious for me that they require to have an option defined for them. More importantly, the current way...

Hi, I would like to add an option to my application that allows repeated input of vectors. I tried this: ``` ("test", "vector input", cxxopts::value()) const std::vector tests = result["test"].as();...

enhancement

Suppose I have: ``` options .add_options() ("i,input", "Input", cxxopts::value()) ``` and then execute: ``` my_executable -i foo -i bar ``` I'll get a `result.count("input")` value of 2, like I expect,...

Hello, it would be nice to have more readable and verbose value parse error messages, say a parameter `-d` expects an integer value but we made a mistake, we would...