Bug#882864: [PATCH] document json_pp option separation

積丹尼 Dan Jacobson jidanni at jidanni.org
Mon Nov 27 16:37:53 UTC 2017


X-Debbugs-Cc: makamaka at cpan.org
Package: libjson-pp-perl
Version: 2.94000-1
Severity: minor
File: /usr/bin/json_pp

--- /usr/bin/json_pp	2017-06-25 03:59:24.000000000 +0800
+++ /tmp/json_pp	2017-11-28 00:37:16.414770019 +0800
@@ -20,7 +20,7 @@
    't=s' => \( my $opt_to = 'json' ),
    'json_opt=s' => \( my $json_opt = 'pretty' ),
    'V'   => \( my $version ),
-) or die "Usage: $0 [-V] [-f from_format] [-t to_format] [-json_opt options]\n";
+) or die "Usage: $0 [-V] [-f from_format] [-t to_format] [-json_opt options_to_json1[,options_to_json2[,...]]]\n";
 
 
 if ( $version ) {
@@ -94,7 +94,7 @@
 
 =head1 SYNOPSIS
 
-    json_pp [-v] [-f from_format] [-t to_format] [-json_opt options_to_json]
+    json_pp [-v] [-f from_format] [-t to_format] [-json_opt options_to_json1[,options_to_json2[,...]]]
 
 =head1 DESCRIPTION
 
@@ -154,6 +154,12 @@
     ascii latin1 utf8 pretty indent space_before space_after relaxed canonical allow_nonref
     allow_singlequote allow_barekey allow_bignum loose escape_slash
 
+Multiple options must be separated by commas:
+
+    Right: -json_opt pretty,canonical
+
+    Wrong: -json_opt pretty -json_opt canonical
+
 =head2 -v
 
 Verbose option, but currently no action in fact.



More information about the pkg-perl-maintainers mailing list