GithubHelp home page GithubHelp logo

kostyll / anyoption Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hackorama/anyoption

0.0 1.0 0.0 22 KB

C/C++ Command line and resource file option parsing

Home Page: http://www.hackorama.com/anyoption/

License: MIT License

CMake 0.62% C++ 99.38%

anyoption's Introduction

http://www.hackorama.com/anyoption/

AnyOption is a C++ class for easy parsing of complex commandline options. It also parses options from a rsourcefile in option value pair format. 

AnyOption implements the traditional POSIX style character options ( -n ) as well as the newer GNU style long options ( --name ). Or you can use a simpler long option version ( -name ) by asking to ignore the POSIX style options. 

AnyOption supports the traditional UNIX resourcefile syntax of, any line starting with "#" is a comment and the value pairs use ":" as a delimiter. 

An option which expects a value is considered as an option value pair, while options without a value are considered flags. 

Please read the header file for the documented public interface, and demo.cpp for an example of how easy it is to use AnyOption. 

August 2004, added bug-fixes, and updates send by Michael Peters of Sandia Lab. 
September 2006, fix from Boyan Asenov for a bug in mixing up option type indexes. 
July 2011, fix from Min KJ and Costantino G for string allocation. 

anyoption's People

Contributors

aleffnull avatar hackorama avatar hamann avatar

Watchers

 avatar

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.