Skip to content

Commit

Permalink
for testing, add -P option on command line.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmueller committed Mar 9, 2024
1 parent 57d12f9 commit aeaadcb
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions bin/merge_stocks.pl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ =head1 DESCRIPTION
-H the database host
-D the database name
-x flag; if present, delete the empty remaining accession
-P password
mergefile.txt: A tab-separated file with two columns. Include the following header as the first line: bad name good name
Expand All @@ -32,13 +33,16 @@ =head1 AUTHOR
use CXGN::Stock;


our($opt_H, $opt_D, $opt_x);
getopts('H:D:x');
our($opt_H, $opt_D, $opt_x, $opt_P);
getopts('H:D:xP:');

my $pw = $opt_P;

print "Password for $opt_H / $opt_D: \n";
my $pw = (<STDIN>);
chomp($pw);
if (! $pw) {
print "Password for $opt_H / $opt_D: \n";
$pw = (<STDIN>);
chomp($pw);
}

my $delete_merged_stock = $opt_x;

Expand Down

0 comments on commit aeaadcb

Please sign in to comment.