Changeset 629
- Timestamp:
- 04/08/07 19:26:45 (6 years ago)
- Files:
-
- 2 modified
-
applications/shepherd (modified) (8 diffs)
-
status (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
applications/shepherd
r625 r629 2 2 3 3 my $progname = 'shepherd'; 4 my $version = '0.4.8 5';4 my $version = '0.4.86'; 5 5 6 6 # tv_grab_au … … 165 165 # --------------------------------------------------------------------------- 166 166 167 &get_command_line_options ;167 &get_command_line_options(1); 168 168 169 169 &capabilities if ($opt->{capabilities}); … … 185 185 186 186 &process_setup_commands; 187 &get_command_line_options(0) if (defined $components->{$progname}->{default_cmdline}); 187 188 188 189 &open_logfile unless ($opt->{nolog} or $opt->{update} or $opt->{configure}); … … 1377 1378 sub get_command_line_options 1378 1379 { 1379 # Record so we can pass the unmodified args to components later 1380 @options = @ARGV; # Record so we can pass the unmodified args to components later 1381 push (@options,"") if ($#options == -1); # silence warnings if none 1382 1383 # filter what options we don't pass on .. 1384 foreach (0..$#options) { 1385 next if (!$options[$_]); 1386 1387 splice(@options,$_,2) if ($options[$_] =~ /^--config-file/); # don't pass on "--config-file (file)" 1388 splice(@options,$_,1) if ($options[$_] =~ /^--quiet/); # never be quiet 1380 my $use_argv = shift; 1381 1382 if ($use_argv) { 1383 # Record so we can pass the unmodified args to components later 1384 @options = @ARGV; # Record so we can pass the unmodified args to components later 1385 push (@options,"") if ($#options == -1); # silence warnings if none 1386 1387 # filter what options we don't pass on .. 1388 foreach (0..$#options) { 1389 next if (!$options[$_]); 1390 1391 splice(@options,$_,2) if ($options[$_] =~ /^--config-file/); # don't pass on "--config-file (file)" 1392 splice(@options,$_,1) if ($options[$_] =~ /^--quiet/); # never be quiet 1393 } 1394 } else { 1395 push(@ARGV,split(/:/,$components->{$progname}->{default_cmdline})); 1389 1396 } 1390 1397 … … 1401 1408 description 1402 1409 quiet 1410 notquiet 1403 1411 version 1404 1412 debug … … 1430 1438 $debug = $opt->{debug}; 1431 1439 $days = $opt->{days} if ($opt->{days}); 1440 delete $opt->{quiet} if (defined $opt->{notquiet}); 1432 1441 } 1433 1442 … … 1545 1554 } 1546 1555 my $arg = join(":",@args); 1556 1557 if ($component eq $progname) { 1558 if ((!defined $arg) || ($arg eq "")) { 1559 delete $components->{$progname}->{default_cmdline}; 1560 &log("\ncleared default options for $progname\n"); 1561 } else { 1562 $components->{$progname}->{default_cmdline} = "--".join(":--",@args); 1563 &log("\nset default options for $progname to: ".$components->{$progname}->{default_cmdline}."\n"); 1564 } 1565 write_config_file(); 1566 return; 1567 } 1568 1547 1569 if ((!defined $arg) || ($arg eq "")) { 1548 1570 &log("\nNothing to set: you need to use this as --component-set (component):(settings)\n"); … … 2195 2217 --debug Print lots of debugging messages 2196 2218 --quiet Don't print anything except errors 2219 --notquiet Override any previous --quiet 2197 2220 --nolog Don't write a logfile 2198 2221 -
status
r628 r629 1 application shepherd 0.4.8 51 application shepherd 0.4.86 2 2 grabber yahoo7widget 1.82 3 3 grabber rex 3.4.7
