From: Robert 'phaylon' Sedlacek Date: Wed, 11 Jul 2012 21:12:48 +0000 (+0000) Subject: command line docs and option requirements X-Git-Tag: v0.001_001~24 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b6f45e4ffb4ce410cb0535037a8d9bfcb0374c66;p=scpubgit%2FSystem-Introspector.git command line docs and option requirements --- diff --git a/bin/system-introspector b/bin/system-introspector index 5e23b39..119c4a9 100755 --- a/bin/system-introspector +++ b/bin/system-introspector @@ -15,6 +15,12 @@ GetOptions( 'h|help' => sub { pod2usage(0) }, ) or pod2usage(2); +die "Requires --storage\n" + unless defined $storage_dir; + +die "Requires --config\n" + unless defined $config_file; + die "Requires --all or --group option\n" unless $update_all or @update_groups; @@ -53,13 +59,17 @@ system-introspector - Generate System Introspection Data Path to storage. Always required. -=head2 -H , --host +=head2 -c , --config + +Path to the configuration file. + +=head2 -a, --all -Remote host gathering +Fetch all groups. -=head2 --allow-empty +=head2 -g , --group -Allow empty commits to storage. +Fetch the specified group. Can be used multiple times. =head2 -h, --help