![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
#include <args.hh>
Public Attributes | |
| std::function< void(std::vector< std::string >)> | fun |
| size_t | arity = 0 |
Arguments (flags/options and positional) have a "handler" which is caused when the argument is parsed. The handler has an arbitrary side effect, including possible affect further command-line parsing.
There are many constructors in order to support many shorthand initializations, and this is used a lot.