Changeset 40993 for branches/eam_branches/ipp-20191011
- Timestamp:
- Oct 28, 2019, 4:13:24 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20191011/Nebulous/bin/neb-ls
r28581 r40993 19 19 $ls, 20 20 $column, 21 $help 21 22 ); 22 23 23 24 $server = $ENV{'NEB_SERVER'} unless $server; 24 25 25 26 26 GetOptions( … … 29 29 'l' => \$ls, 30 30 'column|c' => \$column, 31 'help|h' => \$help, 31 32 ) || pod2usage( 2 ); 33 34 # explicitly defined -h / --help: 35 if ($help) { pod2usage( 2 ); } 32 36 33 37 # twiddle column so that it does it by default. … … 35 39 $column = not $column; 36 40 41 if ($ls) { $path = 1; } 42 37 43 my $pattern = shift; 38 44 39 45 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 40 pod2usage( -msg => "Required options: --server", -exitval => 2 ) 41 unless $server; 46 pod2usage( -msg => "Required options: --server", -exitval => 2 ) unless $server; 42 47 43 48 my $neb = Nebulous::Client->new( … … 96 101 =head1 SYNOPSIS 97 102 98 neb-ls [--server <URL>] [-c] [-p] <pattern>103 neb-ls [--server <URL>] [-c] [-p] [-l] <pattern> 99 104 100 105 =head1 DESCRIPTION … … 115 120 116 121 Disable column formatting, and output results one to a line. 122 123 =item * --l|-l 124 125 Give disk file information using ls (implies -p). 117 126 118 127 Optional
Note:
See TracChangeset
for help on using the changeset viewer.
