vietjtnguyen / argagg

A simple C++11 command line argument parser
MIT License
224 stars 28 forks source link

Add global order of options #8

Open vietjtnguyen opened 7 years ago

vietjtnguyen commented 7 years ago

Expand the data structure so that a user can walk through all option results in the order of parse. This will likely entail a back reference from the option result to the parent option definition.

vietjtnguyen commented 7 years ago

The intention behind this feature is for command line interfaces like find where the operators have to be parsed in order to build an expression tree (e.g. find . \( -not -path "./build*" -or -type d \) -not -name "*.swp").