3 ms·
> Is there any reason to use getopt over flag in Go? Its parser follows the POSIX utility syntax guidelines and behaves like most POSIX tools. The flag parser
by boomlinde 7y ago
> Is there any reason to use getopt over flag in Go?
Its parser follows the POSIX utility syntax guidelines and behaves like most POSIX tools. The flag parser on the other hand is simpler, but can lead to some surprises if you are used to getopt-like parsing.