Skip to main content

check_binary_args

Function check_binary_args 

Source
pub fn check_binary_args(args: &[String]) -> Result<(), String>
Expand description

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.