summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-07-28 11:42:03 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-07-28 11:42:03 +0200
commit2e57947132c4b5a38d19c2cef137e86d7c188654 (patch)
tree0e972d5fc2edcfcb8895328f7b2a43ca400e2be8 /bin
parent96f5d993d8eff32958e55fe8b3c74cf26e064d2b (diff)
Add -c option to specify config file location
Diffstat (limited to 'bin')
-rwxr-xr-xbin/icli6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/icli b/bin/icli
index 0248e47..19280c7 100755
--- a/bin/icli
+++ b/bin/icli
@@ -175,6 +175,7 @@ sub display_host {
}
GetOptions(
+ 'c|config=s' => \$config_file,
'C|no-colours' => sub { $colours = 0 },
'f|status-file=s' => \$status_file,
'g|hostgroup=s' => sub { push(@for_groups, split(/,/, $_[1])) },
@@ -241,6 +242,11 @@ services and their states.
=over
+=item B<-c>/B<--config> I<config>
+
+Read config from I<file> instead of the default
+F</var/cache/icinga/objects.cache>
+
=item B<-C>/B<--no-colours>
Disable colours in output