Servostar / gemstone

Gemstone programming language compiler (GSC)
GNU General Public License v2.0
3 stars 0 forks source link

add mechanism to read and globally save options #6

Closed Servostar closed 3 months ago

Servostar commented 5 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.

Example: Call: gsc --version Should yield: check_option("version") == 1