Skip to content

Commit

Permalink
Check number of arguments for --change-gene-id
Browse files Browse the repository at this point in the history
  • Loading branch information
jseager7 committed May 2, 2024
1 parent 9927529 commit b216f8e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions script/canto_admin.pl
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ sub usage
usage();
}

if ($change_gene_id && @ARGV != 2) {
warn "Error: --change-gene-id needs two arguments\n\n";
usage();
}

my $config = Canto::Config::get_config();
my $schema = Canto::TrackDB->new(config => $config);

Expand Down

0 comments on commit b216f8e

Please sign in to comment.