Skip to content

Modern C++, simple header-only command line argument parser under 100 lines of code

License

Notifications You must be signed in to change notification settings

ademyankov/margv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ Minimalistic Command Line Arguments parser

The code is just a header under 100 lines of code.

Files

  • The header is here
  • The sample application is here

Build

The code has been built and tested on Windows and Linux using MS Visual Studio 2019 and gcc 9.4.0 on Ubuntu 20.04

Microsoft Visual Studio

To create Microsoft Visual Studio solution and project files, and build the solution from PowerShell or CMD:

mkdir -p build/msvc
cd build/msvc
cmake ../..
cmake --build .

Microsoft Visual Studio solution file will be /build/msvc/margv.sln

Linux

To build on Linux using make:

mkdir -p build/x86
cd build/x86
cmake ../..
make

Run example app

To see all the sample options available, run:

./argv

About

Modern C++, simple header-only command line argument parser under 100 lines of code

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published