or download this
my ($db,$killswitch,$configDepth,$hostname) #default values
= (0 ,0 ,-1 ,'');
...
if( $configDepth == -1){ print $0.' requires the -d switch with a dept
+h value.'.$cr; die; }
if( $hostname == '' ){ print $0.' requires the -H with a hostname or
+ comma-seperated list of hostnames.'.$cr; die;}