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-cli

    r844 r849  
    1010=head1 NAME 
    1111 
    12     la-query - Tools to query base in LATMOS::Accounts system 
     12    la-cli - A powerfull commandline tool to manage LATMOS::Accounts contents 
    1313 
    1414=head1 SYNOPSIS 
    1515 
    16     la-query [options] [obj_id] 
    17  
    18 =item [obj_id] : If present, all set attributes (rw) will be displayed for that obj_id. 
    19         If none is given, all obj_ids will be printed. 
    20  
    21 For the default object_type (user), obj_id = login. 
    22  
    23 Example : la-query lambda 
     16    la-cli [options] 
    2417 
    2518=cut 
    2619 
    2720GetOptions( 
    28     'c|config=s' => \my $config, 
    29     'b|base=s'   => \my $base, 
    30     'noexp'      => \my $noexp, 
    31     'exp'        => \my $exp, 
    32     'help'       => sub { pod2usage(0) }, 
     21    'c|config=s'        => \my $config, 
     22    'b|base=s'          => \my $base, 
     23    'no-unexp|wo-unexp' => \my $nounexp, 
     24    'with-unexp'        => \my $unexp, 
     25    'help'              => sub { pod2usage(0) }, 
    3326) or pod2usage(); 
    3427 
     
    4538Query this specific base instead of the default one. 
    4639 
    47 =item --noexp 
     40=item --unexp 
    4841 
    4942Take into account all objects (even non propagated ones, with attribute 'exported'=0) 
    5043 
    51 =item --exp 
     44=item --no-unexp 
    5245 
    5346Take into account only propagated objects (attribute 'exported'=1) (default) 
     
    6154$labase && $labase->load or die "Cannot load base"; 
    6255 
    63 $labase->wexported($noexp ? 0 : 1); 
     56$labase->unexported($nounexp ? 0 : 1); 
    6457 
    6558my $globalenv = LATMOS::Accounts::Cli::globalenv($labase); 
Note: See TracChangeset for help on using the changeset viewer.