Check the rws binary’s arguments (program name first) before it starts
a server: every argument must be a settings flag with a value
(--port=8080, -p 8080) or one of the binary’s own (--check,
--verbose, …). Err is the message to print, for exit code 2. Only the
binary calls this: an application built on the library may take
arguments of its own.
Returns the text to print for an informational flag — --version / -V
or --help / -h / help — if args (as from env::args(), program
name first) contains one, so the binary can print it and exit before
starting a server. None means start normally. -h alone is help since
18.37.0; -h=<list> is still --cors-allow-headers.
-p 8080 / --port 8080 written as -p=8080 / --port=8080, for every
flag in CommandLineArgument::get_command_line_arg_list (since
18.37.0). A flag is joined with the next argument only when that one
doesn’t start with -. -h stays as it is: alone it asks for help.