]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
call with --std-ipp-uris command line option to show uris in standard form
authornidhijainpnp <12njain06@gmail.com>
Mon, 10 Aug 2020 07:46:39 +0000 (13:16 +0530)
committerTill Kamppeter <till.kamppeter@gmail.com>
Thu, 20 Aug 2020 20:22:26 +0000 (22:22 +0200)
(cherry picked from commit 073d94d4169f31870303ede90738fd69bcfbadf7)

utils/driverless.1
utils/driverless.c

index 81e87a805137bf7d146152c6d7ba64bf1d16a091..7b4b791f1fc0ecd8ea21fa0a106a4a1f7081bc4d 100644 (file)
@@ -5,7 +5,7 @@
 .SH SYNOPSIS
 .nf
 .fam C
-\fBdriverless\fP [\fB-h\fP | \fB--help\fP | \fB--version\fP] [\fB-d\fP | \fB-v\fP | \fB--debug\fP] [\fBlist\fP] [\fB_ipps._tcp\fP] [\fB_ipp._tcp\fP] | [\fBcat\fP \fIdriver URI\fP] | [\fIIPP printer URI\fP]
+\fBdriverless\fP [\fB-h\fP | \fB--help\fP | \fB--version\fP] [\fB-d\fP | \fB-v\fP | \fB--debug\fP] [\fBlist\fP] [\fB_ipps._tcp\fP] [\fB_ipp._tcp\fP] [\fB--std-ipp-uris\fP] | [\fBcat\fP \fIdriver URI\fP] | [\fIIPP printer URI\fP]
 
 .fam T
 .fi
@@ -60,6 +60,10 @@ Check for only IPPS printers supporting driverless printing .
 Check for only IPP printers supporting driverless printing .
 .TP
 .B
+\fB--std-ipp-uris\fP
+Show URIS in standard form
+.TP
+.B
 \fBcat\fP \fIdriver URI\fP
 Generate the PPD file for the supplied \fIdriver URI\fP from the output of "list"
 (to be used by CUPS).
index 913eeb2bddfa49dd0befb46fe9598b74cfb38de4..6b0b687bd95cc7ed63505f7bd0f1c472d95d3ef9 100644 (file)
@@ -795,7 +795,7 @@ int main(int argc, char*argv[]) {
       }else if (!strcasecmp(argv[i], "_ipp._tcp")) {
        /* reg_type_no = 0 for IPP entries only*/
        reg_type_no = 0;
-      }else if (!strcasecmp(argv[i], "dns-sd-off")) {
+      }else if (!strcasecmp(argv[i], "--std-ipp-uris")) {
        /* Show URIS in standard form */
        exit(list_printers(-1,reg_type_no));
       }else if (!strncasecmp(argv[i], "cat", 3)) {
@@ -859,7 +859,7 @@ int main(int argc, char*argv[]) {
          "                          used by CUPS).\n"
     "  _ipps._tcp              Check for only IPPS printers supporting driverless printing\n"
     "  _ipp._tcp               Check for only IPP printers supporting driverless printing\n"
-    "  dns-sd-off              Show URIS in standard form\n"
+    "  --std-ipp-uris          Show URIS in standard form\n"
          "  cat <driver URI>        Generate the PPD file for the driver URI\n"
          "                          <driver URI> (to be used by CUPS).\n"
          "  <printer URI>           Generate the PPD file for the IPP/IPPS printer URI\n"