Skip to content

Commit 16fcc15

Browse files
gemmaromquinson
authored andcommitted
Remove verbose option handling from each format modules.
1 parent f2f8d3f commit 16fcc15

File tree

10 files changed

+5
-14
lines changed

10 files changed

+5
-14
lines changed

lib/Locale/Po4a/AsciiDoc.pm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ sub initialize {
215215
$self->{options}{'nobullets'} = 1;
216216
$self->{options}{'forcewrap'} = 0;
217217
$self->{options}{'debug'} = '';
218-
$self->{options}{'verbose'} = 1;
219218
$self->{options}{'entry'} = '';
220219
$self->{options}{'macro'} = '';
221220
$self->{options}{'style'} = '';

lib/Locale/Po4a/Man.pm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,6 @@ sub initialize {
471471
my %options = @_;
472472

473473
$self->{options}{'debug'} = '';
474-
$self->{options}{'verbose'} = '';
475474
$self->{options}{'groff_code'} = '';
476475
$self->{options}{'untranslated'} = '';
477476
$self->{options}{'noarg'} = '';

lib/Locale/Po4a/Org.pm

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ sub initialize {
3838
$self->{options}{skip_properties} = [];
3939
$self->{options}{skip_heading} = 0;
4040
$self->{options}{debug} = 0;
41-
$self->{options}{verbose} = 0;
4241

4342
foreach my $opt ( keys %options ) {
4443
exists $self->{options}{$opt}
@@ -47,7 +46,6 @@ sub initialize {
4746

4847
$self->{options}{skip_heading} = $options{skip_heading};
4948
$self->{options}{debug} = $options{debug};
50-
$self->{options}{verbose} = $options{verbose};
5149

5250
foreach my $option_name ( 'skip_keywords', 'skip_properties' ) {
5351
my $option = $options{$option_name} or next;

lib/Locale/Po4a/RubyDoc.pm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ sub initialize {
6565
my %options = @_;
6666

6767
$self->{options}{'debug'} = 1;
68-
$self->{options}{'verbose'} = 1;
6968
$self->{options}{'puredoc'} = 0;
7069

7170
foreach my $opt ( keys %options ) {

lib/Locale/Po4a/Sgml.pm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,7 @@ sub initialize {
255255

256256
$self->{options}{'force'} = '';
257257

258-
$self->{options}{'verbose'} = '';
259-
$self->{options}{'debug'} = '';
258+
$self->{options}{'debug'} = '';
260259

261260
foreach my $opt ( keys %options ) {
262261
if ( $options{$opt} ) {

lib/Locale/Po4a/TeX.pm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1633,7 +1633,6 @@ sub initialize {
16331633
$self->{options}{'no_wrap'} = '';
16341634
$self->{options}{'verbatim'} = '';
16351635
$self->{options}{'debug'} = '';
1636-
$self->{options}{'verbose'} = '';
16371636
$self->{options}{'no-warn'} = 0; # TexInfo option to not warn about the state of the module
16381637

16391638
%debug = ();

lib/Locale/Po4a/Text.pm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ sub initialize {
231231
$self->{options}{'nobullets'} = 0;
232232
$self->{options}{'keyvalue'} = 1;
233233
$self->{options}{'tabs'} = 1;
234-
$self->{options}{'verbose'} = 1;
235234
$self->{options}{'neverwrap'} = 1;
236235

237236
foreach my $opt ( keys %options ) {

lib/Locale/Po4a/TransTractor.pm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ sub new {
376376
$self->{options}{'package-version'} = '';
377377
$self->{options}{'wrap-po'} = '';
378378
$self->{options}{'wrapcol'} = '';
379+
$self->{options}{'verbose'} = delete $options{verbose};
379380
my $context_module = delete $options{context_module};
380381

381382
# let the plugin parse the options and such
@@ -400,8 +401,8 @@ sub new {
400401
# [0] is the line content, [1] is the reference $filename:$linenum
401402
$self->{TT}{doc_in} = ();
402403
$self->{TT}{doc_out} = ();
403-
if ( defined $options{'verbose'} ) {
404-
$self->{TT}{verbose} = $options{'verbose'};
404+
if ( defined $self->{options}{verbose} ) {
405+
$self->{TT}{verbose} = $self->{options}{verbose};
405406
}
406407
if ( defined $options{'debug'} ) {
407408
$self->{TT}{debug} = $options{'debug'};

lib/Locale/Po4a/Xml.pm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,8 +594,7 @@ sub initialize {
594594
$self->{options}{'ontagerror'} = "fail";
595595
$self->{options}{'cpp'} = 0;
596596

597-
$self->{options}{'verbose'} = '';
598-
$self->{options}{'debug'} = '';
597+
$self->{options}{'debug'} = '';
599598

600599
foreach my $opt ( keys %options ) {
601600
if ( $options{$opt} ) {

lib/Locale/Po4a/Yaml.pm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ sub initialize {
9797
$self->{options}{'keys'} = '';
9898
$self->{options}{'paths'} = '';
9999
$self->{options}{'debug'} = 0;
100-
$self->{options}{'verbose'} = 1;
101100
$self->{options}{'skip_array'} = 0;
102101

103102
foreach my $opt ( keys %options ) {

0 commit comments

Comments
 (0)