#
afb4998d |
| 16-Nov-2022 |
John Baldwin <jhb@FreeBSD.org> |
rs: Use getopt() and strtol() instead of mannual parsing.
This uses the "::" extension to getopt() to handle options which take an optional argument.
The updated flag tests were all wrong before an
rs: Use getopt() and strtol() instead of mannual parsing.
This uses the "::" extension to getopt() to handle options which take an optional argument.
The updated flag tests were all wrong before and only passed because the manual parser failed to raise errors when a required argument was missing. The invalid argument test now gets a better error message.
Reviewed by: brooks, imp, emaste Differential Revision: https://reviews.freebsd.org/D36834
show more ...
|
#
42d10b1b |
| 16-Nov-2022 |
John Baldwin <jhb@FreeBSD.org> |
rs: Convert to C++ to convert elem to a std::vector<char *>.
This also updates various indices and counters from int to size_t to pacify resulting -Wsign-compare warnings.
Reviewed by: brooks Diffe
rs: Convert to C++ to convert elem to a std::vector<char *>.
This also updates various indices and counters from int to size_t to pacify resulting -Wsign-compare warnings.
Reviewed by: brooks Differential Revision: https://reviews.freebsd.org/D36833
show more ...
|