Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Sep 2017 18:57:28 +0800
From:      Yubin Ruan <ablacktshirt@gmail.com>
To:        by <by@meetlost.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Parse command line arguments with getopt_long()
Message-ID:  <CAJYFCiO6XJRAuFYRYsCcwF2VnCHsDzx8Ety10GLV6gXqeWzMvQ@mail.gmail.com>
In-Reply-To: <373D1051-950A-41B1-BB33-55540A1E393A@meetlost.com>
References:  <373D1051-950A-41B1-BB33-55540A1E393A@meetlost.com>

next in thread | previous in thread | raw e-mail | index | archive | help
2017-09-07 14:49 GMT+08:00 by <by@meetlost.com>:
> Hi,
>
> I am writing a program which need parse command line arguments like "--my=
option somevalue", and what I found is getopt_long(). After read the man pa=
ge, I realize that this function can parse arguments like "--myoption=3Dsom=
evalue", 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJYFCiO6XJRAuFYRYsCcwF2VnCHsDzx8Ety10GLV6gXqeWzMvQ>