Scripts: Add -c option to specify the contact ID

This commit is contained in:
Shahram Najm 2022-08-30 20:04:43 +01:00
parent cf3c38ba22
commit bde94ea29a
1 changed files with 5 additions and 3 deletions

View File

@ -27,15 +27,17 @@ use Getopt::Long;
my $SANITY_CHECK = 0;
my $WRITE_TO_FILES = 0;
my $WRITE_TO_PARAMDB = 0; # Be careful. Fill in $contactId before proceeding
my $contactId; # JIRA issue ID
# Process arguments. Must be at least one file
if (scalar @ARGV < 1) {
&usage;
}
my $result = GetOptions (
"s" => \$SANITY_CHECK,
"f" => \$WRITE_TO_FILES,
"p" => \$WRITE_TO_PARAMDB
"s" => \$SANITY_CHECK,
"f" => \$WRITE_TO_FILES,
"p" => \$WRITE_TO_PARAMDB,
"c:s" => \$contactId
);
$ARGV[0] or &usage;