freebsd-src/usr.bin/rs
John Baldwin afb4998dd4 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
2022-11-15 21:19:35 -08:00
..
tests rs: Use getopt() and strtol() instead of mannual parsing. 2022-11-15 21:19:35 -08:00
Makefile rs: Convert to C++ to convert elem to a std::vector<char *>. 2022-11-15 21:03:12 -08:00
Makefile.depend
rs.1
rs.cc rs: Use getopt() and strtol() instead of mannual parsing. 2022-11-15 21:19:35 -08:00