Changeset 41172 for trunk/Nebulous/bin/neb-cull
- Timestamp:
- Nov 27, 2019, 12:04:14 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/Nebulous/bin/neb-cull (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous/bin/neb-cull
r30236 r41172 17 17 18 18 my ($min_copies, $server, $volume, $one_only); 19 my ($soft_volume );19 my ($soft_volume, $help); 20 20 $server = $ENV{'NEB_SERVER'} unless $server; 21 21 … … 26 26 'one_only|o' => \$one_only, 27 27 'soft_volume' => \$soft_volume, 28 'help|h' => \$help, 28 29 ) || pod2usage( 2 ); 30 31 # explicitly defined -h / --help: 32 if ($help) { pod2usage( -verbose => 1 ); } 29 33 30 34 my $key = shift; … … 59 63 # print "@cull_args\n"; 60 64 61 62 65 if ($one_only) { 63 66 my $status = $neb->there_can_be_only_one(@cull_args); 67 if (not defined $status) { 68 die "not enough instances of Nebulous key: $key"; 69 } 64 70 if ($status == 0) { 65 71 die "not enough instances of Nebulous key: $key";
Note:
See TracChangeset
for help on using the changeset viewer.
