[−][src]Function ipp_util::util::ipp_main
pub fn ipp_main<I, T>(args: I) -> Result<(), IppError> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Entry point to main utility function
args
- a list of arguments including program name as a first argument
Command line usage for getting printer status (will print list of printer attributes on stdout)
USAGE:
ipputil status [FLAGS] [OPTIONS] <uri>
FLAGS:
-h, --help Prints help information
--no-verify-certificate Disable TLS certificate verification (insecure)
--no-verify-hostname Disable TLS host name verification (insecure)
-V, --version Prints version information
OPTIONS:
-a, --attribute <attributes>... Attributes to query, default is to get all
-c, --ca-cert <ca-certs>... Additional CA root certificates in PEM or DER format
-t, --timeout <timeout> Network timeout in seconds, 0 to disable [default: 30]
ARGS:
<uri> Printer URI
Command line usage for getting printer status (will print list of printer attributes on stdout)
USAGE:
ipputil print [FLAGS] [OPTIONS] <uri>
FLAGS:
-h, --help Prints help information
-n, --no-check-state Do not check printer state before printing
--no-verify-certificate Disable TLS certificate verification (insecure)
--no-verify-hostname Disable TLS host name verification (insecure)
-V, --version Prints version information
OPTIONS:
-c, --ca-cert <ca-certs>... Additional CA root certificates in PEM or DER format
-f, --file <file> Input file name to print [default: standard input]
-j, --job-name <job-name> Job name to send as job-name attribute
-o, --option <options>... Extra IPP job attributes in key=value format
-t, --timeout <timeout> Network timeout in seconds, 0 to disable [default: 30]
-u, --user-name <user-name> User name to send as requesting-user-name attribute
ARGS:
<uri> Printer URI