- Timestamp:
- Jan 4, 2018, 3:35:29 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/klask
r378 r379 3033 3033 my $graph_shift = 1; 3034 3034 my $way = 'all'; 3035 my $no_header; 3035 3036 3036 3037 GetOptions( 3037 'format|f=s' => \$format, 3038 'modulo|m=i' => \$graph_modulo, 3039 'shift|s=i' => \$graph_shift, 3040 'way|w=s' => \$way, 3038 'format|f=s' => \$format, 3039 'modulo|m=i' => \$graph_modulo, 3040 'shift|s=i' => \$graph_shift, 3041 'way|w=s' => \$way, 3042 'no-header|H' => \$no_header, 3041 3043 ); 3042 3044 … … 3048 3050 $format = 'txt' if not defined $possible_format{$format}; 3049 3051 3050 $possible_format{$format}->(modulo => $graph_modulo, shift => $graph_shift, way => $way, @ARGV);3052 $possible_format{$format}->(modulo => $graph_modulo, shift => $graph_shift, way => $way, 'no-header' => $no_header, @ARGV); 3051 3053 return; 3052 3054 } … … 3055 3057 sub cmd_exportsw_txt { 3056 3058 my %args = ( 3057 way=> 'all',3058 list => 0,3059 'way' => 'all', 3060 'no-header' => undef, 3059 3061 @_); 3060 3062 … … 3080 3082 } 3081 3083 3082 print $tb_desc->title() ;3083 print $tb_desc->rule('-') ;3084 print $tb_desc->title() unless $args{'no-header'}; 3085 print $tb_desc->rule('-') unless $args{'no-header'}; 3084 3086 print $tb_desc->body(); 3085 3087 $tb_desc->clear; … … 3113 3115 my @colrange = map {scalar $tb_child->colrange($_)} (0 .. 4); # force scaler context 3114 3116 $tb_child->add(map {' ' x $_} reverse @colrange); # add empty line to force symetric table output 3115 print $tb_child->title() ;3116 print $tb_child->rule('-') ;3117 print $tb_child->title() unless $args{'no-header'}; 3118 print $tb_child->rule('-') unless $args{'no-header'}; 3117 3119 print $tb_child->body(0, $tb_child->body_height() - 1); # remove last fake line 3118 3120 $tb_child->clear; … … 3144 3146 my @colrange = map {scalar $tb_parent->colrange($_)} (0 .. 4); # force scaler context 3145 3147 $tb_parent->add(map {' ' x $_} reverse @colrange); # add empty line to force symetric table output 3146 print $tb_parent->title() ;3147 print $tb_parent->rule('-') ;3148 print $tb_parent->title() unless $args{'no-header'}; 3149 print $tb_parent->rule('-') unless $args{'no-header'}; 3148 3150 print $tb_parent->body(0, $tb_parent->body_height() - 1); # remove last fake line 3149 3151 $tb_parent->clear;
Note: See TracChangeset
for help on using the changeset viewer.