Changeset 125


Ignore:
Timestamp:
12/13/05 17:21:47 (19 years ago)
Author:
thauvin
Message:
  • add --check
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/soft/ObsData/bin/obsdata

    • Property cvs2svn:cvs-rev changed from 1.11 to 1.12
    r121 r125  
    2323GetOptions( 
    2424    'c|config=s' => \my $configfile, 
     25    'check' => \my $check_only, 
    2526    'l|logfile=s' => \my $log, 
    2627    'debug' => sub { $verbose = 0 }, 
     
    3132=head1 SYNOPSIS 
    3233 
    33     obsdata -c config_file [[-l logfile] [-d] [-v|--debug]] 
     34    obsdata -c config_file [[-l logfile] [-d] [-v|--debug]] [--check] 
    3435    obsdata [-h|-help] 
    3536 
     
    4142 
    4243Use this configuration file 
     44 
     45=item --check 
     46 
     47Only check config file and exit 
    4348 
    4449=item -l|--logfile logfile 
     
    7681 
    7782$obsdata->load or die "Can load osbdata"; 
    78 $obsdata->checkconfig or die "Error while checking configuration"; 
     83my $checkres = $obsdata->checkconfig or die "Error while checking configuration"; 
     84exit(0) if ($check_only); 
    7985 
    8086my @obs = $obsdata->list_obs; 
Note: See TracChangeset for help on using the changeset viewer.