cli: add .present field to opt desc to check if the arg was present
authorJani Nikula <jani@nikula.org>
Sun, 1 Oct 2017 20:53:14 +0000 (23:53 +0300)
committerDavid Bremner <david@tethera.net>
Thu, 5 Oct 2017 01:01:40 +0000 (22:01 -0300)
commitbc99087ff95d0cdada827f3b838d05e0c9448b63
treee20f30db8c36a080a0e0f03923a7da68294bf373
parent25960b5ecdc6374fc87a3cb12c1c393497b262da
cli: add .present field to opt desc to check if the arg was present

Add pointer to boolean .present field to opt desc, which (if non-NULL)
will be set to TRUE if the argument in question is present on the
command line. Unchanged otherwise.
command-line-arguments.c
command-line-arguments.h