Ignore:
Timestamp:
03/29/10 19:09:13 (14 years ago)
Author:
nanardon
Message:
  • make unxported mode options more explicit
  • fix POD according behavior
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LATMOS-Accounts/bin/la-query

    r827 r849  
    2525 
    2626GetOptions( 
    27     'c|config=s' => \my $config, 
    28     'b|base=s'   => \my $base, 
    29     'o|object=s' => \my $otype, 
    30     'e|empty'    => \my $empty_attr, 
    31     'fmt=s'      => \my $fmt, 
    32     'filefmt=s'  => \my $filefmt, 
    33     'ro'         => \my $with_ro, 
    34     'noexp'      => \my $noexp, 
    35     'exp'        => \my $exp, 
    36     'help'       => sub { pod2usage(0) }, 
     27    'c|config=s'        => \my $config, 
     28    'b|base=s'          => \my $base, 
     29    'o|object=s'        => \my $otype, 
     30    'e|empty'           => \my $empty_attr, 
     31    'fmt=s'             => \my $fmt, 
     32    'filefmt=s'         => \my $filefmt, 
     33    'ro'                => \my $with_ro, 
     34    'no-unexp|wo-unexp' => \my $nounexp, 
     35    'with-unexp'        => \my $unexp, 
     36    'help'              => sub { pod2usage(0) }, 
    3737) or pod2usage(); 
    3838 
     
    5555Query will be performed on this object. Default is the 'User' object. 
    5656 
    57 =item --noexp 
     57=item --with-unexp 
    5858 
    59 Take into account all objects (even non propagated ones, with attribute 'exported'=0) 
     59Take into account all objects (even non propagated ones, with attribute 
     60'exported'=0) (default) 
    6061 
    61 =item --exp 
     62=item --wo-unexp 
    6263 
    63 Take into account only propagated objects (attribute 'exported'=1) (default) 
     64Take into account only propagated objects (attribute 'exported'=1) 
    6465 
    6566=item -e|--empty 
     
    114115$labase && $labase->load or die "Cannot load base"; 
    115116 
    116 $labase->wexported($noexp ? 0 : 1); 
     117$labase->unexported($nounexp ? 0 : 1); 
    117118 
    118119if ($filefmt){ 
Note: See TracChangeset for help on using the changeset viewer.