Skip to content

Instantly share code, notes, and snippets.

@earnhardt3rd
Created June 19, 2023 14:03
Show Gist options
  • Select an option

  • Save earnhardt3rd/75bf1e21ddc8e2db4de7ae6244d1abcc to your computer and use it in GitHub Desktop.

Select an option

Save earnhardt3rd/75bf1e21ddc8e2db4de7ae6244d1abcc to your computer and use it in GitHub Desktop.
require 'getopts.pl';
Getopts('m:d:t');
my $MODE = uc($opt_m) || "";
my $DEBUG = $opt_d || 0;
if (defined $opt_t) { my %TEST = &_SERVERS_HELP();}
1;
sub _SERVERS_HELP {
my $HelpMsg = " PDM_SERVERS \n";
$HelpMsg .= " ----------- \n";
$HelpMsg .= " In summary: pdm_servers will keep a list of server(s) \n";
$HelpMsg .= " KEY:" . $SERVERS{"${HAG}hKeyMask"} . " \n";
$HelpMsg .= " -------------------------------------------------------------------------------- \n";
if (uc($USER_ACCESS) =~ /ADMIN/) {
$HelpMsg .= " VAL:" . $SERVERS{"${HAG}hValMask"} . " \n";
$HelpMsg .= " To manage the server list, use: 'pdm_servers setup' ~ follow the prompts \n";
$HelpMsg .= " \n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment