/flagcxx

A single-header library for C++ similar to Go's flag library

Primary LanguageC++GNU General Public License v3.0GPL-3.0

flagcxx

A library for C++ similar to Go's flag library

License Issues GitHub pull requests


Table of contents

Introduction

A single-header command line flag handling library for C++, similar to Go's flag library

Quickstart

Just include the header in your program and you are ready to go. To build and run the example, do:

$ make
$ ./example

Features

  • Flags can be of types bool, int64, size, float and string
  • Aliases for existing flags
  • Function to print usage generated by the library

Bugs

If you find any bugs, please create an issue and report them.

Make

Run make all to see all the make rules.