From 9650f7f3d5f9451d7b0462e2507539e5d120b5f1 Mon Sep 17 00:00:00 2001 From: Cobalt Canon Date: Fri, 15 Jul 2022 17:05:51 +0200 Subject: [PATCH] lpr: fix -o sides example (#8170) * lpr: updated `lpr --help` yields: `Usage: lpr [options] [file(s)] Options: -# num-copies Specify the number of copies to print -E Encrypt the connection to the server -H server[:port] Connect to the named server and port -m Send an email notification when the job completes -o option[=value] Specify a printer-specific option -o job-sheets=standard Print a banner page with the job -o media=size Specify the media size to use -o number-up=N Specify that input pages should be printed N-up (1, 2, 4, 6, 9, and 16 are supported) -o orientation-requested=N Specify portrait (3) or landscape (4) orientation -o print-quality=N Specify the print quality - draft (3), normal (4), or best (5) -o sides=one-sided Specify 1-sided printing -o sides=two-sided-long-edge Specify 2-sided portrait printing -o sides=two-sided-short-edge Specify 2-sided landscape printing -P destination Specify the destination -q Specify the job should be held for printing -r Remove the file(s) after submission -T title Specify the job title -U username Specify the username to use for authentication` Here, it says that that in stead of underscores at two_sided_long_edge, it should have dashes, two-sided-long-edge. Without these, the command is essentially useless. * Update lpr.md * Update pages/common/lpr.md Co-authored-by: Emily Grace Seville * Update pages/common/lpr.md Co-authored-by: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com> Co-authored-by: Emily Grace Seville Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com> Co-authored-by: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com> --- pages/common/lpr.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/common/lpr.md b/pages/common/lpr.md index cda28b21e..36484d21a 100644 --- a/pages/common/lpr.md +++ b/pages/common/lpr.md @@ -1,8 +1,8 @@ # lpr > CUPS tool for printing files. -> See also `lpstat` and `lpadmin` for listing and configuring printers. -> More information: . +> See also: `lpstat` and `lpadmin`. +> More information: . - Print a file to the default printer: @@ -22,7 +22,7 @@ - Print double-sided either in portrait (long) or in landscape (short): -`lpr -o sides={{two_sided_long_edge|two_sided_short_edge}} {{path/to/file}}` +`lpr -o sides={{two-sided-long-edge|two-sided-short-edge}} {{path/to/file}}` - Set page size (more options may be available depending on setup):