Parse command line arguments with getopt_long()
Yubin Ruan
ablacktshirt at gmail.com
Thu Sep 7 10:57:31 UTC 2017
2017-09-07 14:49 GMT+08:00 by <by at meetlost.com>:
> Hi,
>
> I am writing a program which need parse command line arguments like "--myoption somevalue", and what I found is getopt_long(). After read the man page, I realize that this function can parse arguments like "--myoption=somevalue", the problem is, the somevalue can be integer only.
>
> Is there any function already there to parse command line arguments with string values?
>
> If not, I think I need parse argv manually.
Will "gflags" be OK?
Yubin
More information about the freebsd-hackers
mailing list