Changeset 375


Ignore:
Timestamp:
Jan 4, 2018, 2:14:35 PM (6 years ago)
Author:
g7moreau
Message:
  • Begin support for more option in exportsw
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/klask

    r374 r375  
    30463046   $format = 'txt' if not defined $possible_format{$format};
    30473047
    3048    $possible_format{$format}->($graph_modulo, $graph_shift, @ARGV);
     3048   $possible_format{$format}->(modulo => $graph_modulo, shift => $graph_shift, @ARGV);
    30493049   return;
    30503050   }
     
    30593059   my $switch_connection = YAML::Syck::LoadFile("$KLASK_SW_FILE");
    30603060
    3061    {
     3061   if ($args{'way'} eq 'all' or $args{'way'} eq 'desc') {
    30623062      my %db_switch_global = %{$switch_connection->{'switch_db'}};
    30633063      my $arrow            = '0--------->>>>';
     
    31453145#---------------------------------------------------------------
    31463146sub cmd_exportsw_dot {
    3147    my $graph_modulo = shift;
    3148    my $graph_shift  = shift;
     3147   my %args = (
     3148      modulo   => 0,
     3149      shift    => 1,
     3150      @_);
     3151
     3152   my $graph_modulo = $args{'modulo'};
     3153   my $graph_shift  = $args{'shift'};
    31493154
    31503155   my $switch_connection = YAML::Syck::LoadFile("$KLASK_SW_FILE");
Note: See TracChangeset for help on using the changeset viewer.