Closed Servostar closed 3 months ago
Implement a function such as size_t check_option(const char* name) which returns 1 if the option was set via the command with --option-name and 0 otherwise.
size_t check_option(const char* name)
--option-name
Example: Call: gsc --version Should yield: check_option("version") == 1
gsc --version
check_option("version") == 1
Implement a function such as
size_t check_option(const char* name)
which returns 1 if the option was set via the command with--option-name
and 0 otherwise.Example: Call:
gsc --version
Should yield:check_option("version") == 1