Changeset 849 for LATMOS-Accounts/bin/la-cli
- Timestamp:
- 03/29/10 19:09:13 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LATMOS-Accounts/bin/la-cli
r844 r849 10 10 =head1 NAME 11 11 12 la- query - Tools to query base in LATMOS::Accounts system12 la-cli - A powerfull commandline tool to manage LATMOS::Accounts contents 13 13 14 14 =head1 SYNOPSIS 15 15 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] 24 17 25 18 =cut 26 19 27 20 GetOptions( 28 'c|config=s' => \my $config,29 'b|base=s' => \my $base,30 'no exp' => \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) }, 33 26 ) or pod2usage(); 34 27 … … 45 38 Query this specific base instead of the default one. 46 39 47 =item -- noexp40 =item --unexp 48 41 49 42 Take into account all objects (even non propagated ones, with attribute 'exported'=0) 50 43 51 =item -- exp44 =item --no-unexp 52 45 53 46 Take into account only propagated objects (attribute 'exported'=1) (default) … … 61 54 $labase && $labase->load or die "Cannot load base"; 62 55 63 $labase-> wexported($noexp ? 0 : 1);56 $labase->unexported($nounexp ? 0 : 1); 64 57 65 58 my $globalenv = LATMOS::Accounts::Cli::globalenv($labase);
Note: See TracChangeset
for help on using the changeset viewer.