2 ms·
getopt still results in imperative argument parsing That's one of the reasons I use it, actually. For simple utilities it may be adequate to set flags and sto
by cperciva 11y ago
getopt still results in imperative argument parsing
That's one of the reasons I use it, actually. For simple utilities it may be adequate to set flags and store values for command-line parameters, but sometimes you need the flexibility of being able to run whatever code you need when an option arrives.