Skip to content

A light-weight command line parser for C++ applications

License

Notifications You must be signed in to change notification settings

theocheslerean/cmdparser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CommandLineParser

A C++ lightweight header only library for main arguments parsing

Installation

mkdir build
cd build
cmake ..
make
(sudo) make install

It should install in /usr/local/

For another installation location use:

cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/path/where/to/install

Usage

In CMakeLists.txt add:

include_directories(
    ${COMMANDLINEPARSER_INCLUDE_DIR}
)
target_include_directories(... PUBLIC CommandLineParser)

For cmake

-DCOMMANDLINEPARSER_INCLUDE_DIR=/path/to/install/folder

For C++ Code

#include <cmdparser.h>

CMake file written following instructions from: http://dominikberner.ch/cmake-interface-lib/

Some code snippets taken from: https://github.com/jarro2783/cxxopts

About

A light-weight command line parser for C++ applications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published