4 ms·
> what are people being exposed to that uses -single-dash-long-options? Go's 'flag' package -- although double-dash is silently accepted on the command line.
by everybodyknows 5y ago
> what are people being exposed to that uses -single-dash-long-options?
Go's 'flag' package -- although double-dash is silently accepted on the command line.
The deeper issue with 'flag' is that it rejects the BSD convention of a short/long option pair having guaranteed equivalent semantics e.g. -h/--help. The library just won't let the programmer create such a pair by means of its standard functions.
- randomdata 5y ago> Go's 'flag' package Which uses the Plan 9 convention; the system the Go creators were exposed to. A good example of competing conventions of the past rearing itself in modern tools.