.\"
.\" "$Id: lpoptions.man.in 9771 2011-05-12 05:21:56Z mike $"
.\"
.\"   lpoptions man page for CUPS.
.\"
.\"   Copyright 2007-2011 by Apple Inc.
.\"   Copyright 1997-2006 by Easy Software Products.
.\"
.\"   These coded instructions, statements, and computer programs are the
.\"   property of Apple Inc. and are protected by Federal copyright
.\"   law.  Distribution and use rights are outlined in the file "LICENSE.txt"
.\"   which should have been included with this file.  If this file is
.\"   file is missing or damaged, see the license at "http://www.cups.org/".
.\"
.TH lpoptions 1 "CUPS" "29 August 2008" "Apple Inc."
.SH NAME
lpoptions \- display or set printer options and defaults
.SH SYNOPSIS
.B lpoptions
[ -E ] [ -U
.I username
] [ -h
.I server[:port]
] -d
.I destination[/instance]
[ -o
.I option[=value]
] ... [ -o
.I option[=value]
]
.br
.B lpoptions
[ -E ] [ -U
.I username
] [ -h
.I server[:port]
] [ -p
.I destination[/instance]
] -l
.br
.B lpoptions
[ -E ] [ -U
.I username
] [ -h
.I server[:port]
] [ -o
.I option[=value]
] ... [ -o
.I option[=value]
] [ -p
.I destination[/instance]
] -r
.I option
.br
.B lpoptions
[ -E ] [ -U
.I username
] [ -h
.I server[:port]
] -x
.I destination[/instance]
.SH DESCRIPTION
\fIlpoptions\fR displays or sets printer options and defaults.
\fIlpoptions\fR shows the default printer options when run with no
arguments. Other options include:
.TP 5
-E
.br
Enables encryption when communicating with the CUPS server.
.TP 5
-U username
.br
Uses an alternate username.
.TP 5
-d destination[/instance]
.br
Sets the user default printer to \fIdestination\fR. If \fIinstance\fR
is supplied then that particular instance is used. This option
overrides the system default printer for the current user.
.TP 5
-h server[:port]
.br
Uses an alternate server.
.TP 5
-l
.br
Lists the printer specific options and their current settings.
.TP 5
-o option[=value]
.br
Specifies a new option for the named destination.
.TP 5
-p destination[/instance]
.br
Sets the destination and instance, if specified, for any options
that follow. If the named instance does not exist then it is
created.
.TP 5
-r option
.br
Removes the specified option for the named destination.
.TP 5
-x destination[/instance]
.br
Removes the options for the named destination and instance, if
specified. If the named instance does not exist then this does
nothing.
.LP
If no options are specified using the \fI-o\fR option, then the
current options for the named printer are reported on the
standard output.
.LP
Options set with the \fIlpoptions\fR command are used by the
\fIlp(1)\fR and \fIlpr(1)\fR commands when submitting jobs.
.SH ROOT ACCOUNT OPTIONS
When run by the root user, \fIlpoptions\fR gets and sets default
options and instances for \fIall users\fR in the
@CUPS_SERVERROOT@/lpoptions file.
.SH COMPATIBILITY
The \fIlpoptions\fR command is unique to CUPS.
.SH FILES
~/.cups/lpoptions - user defaults and instances created by non-root
users.
.br
@CUPS_SERVERROOT@/lpoptions - system-wide defaults and instances
created by the root user.
.SH SEE ALSO
\fIcancel(1)\fR, \fIlp(1)\fR, \fIlpadmin(8)\fR, \fIlpr(1)\fR,
.br
http://localhost:631/help
.SH COPYRIGHT
Copyright 2007-2011 by Apple Inc.
.\"
.\" End of "$Id: lpoptions.man.in 9771 2011-05-12 05:21:56Z mike $".
.\"
