-if ($argc != 2 || in_array($argv[1], array('--help', '-help', '-h', '-?')))
-{
- echo "usage : $argv[0] file.xml\n";
- echo "this script will import file.xml template into cacti\n";
- return 0;
+if ($argc < 2 || in_array($argv[1], array('--help', '-help', '-h', '-?'))) {
+ echo "Usage: $argv[0] FILE.xml [FILE.xml]\n";
+ echo "This script will import FILE.xml template into cacti\n";
+ exit(0);