Console_color2 helper.
If $console_color isn't instantiated, remove the color directives and print.
This commit is contained in:
Tony Murray
2016-08-16 19:52:36 -05:00
parent 4a152dab7b
commit aa8294bfce
6 changed files with 30 additions and 27 deletions

View File

@@ -182,7 +182,7 @@ if (!empty($argv[1])) {
}
} else {
print $console_color->convert(
c_echo(
"\n".$config['project_name_version'].' Add Host Tool
Usage (SNMPv1/2c): ./addhost.php [-g <poller group>] [-f] [-p <port assoc mode>] <%Whostname%n> [community] [v1|v2c] [port] ['.implode('|', $config['snmp']['transports']).']