Skip to content

Commit

Permalink
[MISC] Require arguments for count.
Browse files Browse the repository at this point in the history
  • Loading branch information
MitraDarja committed Aug 17, 2023
1 parent fb32036 commit fc9cbbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ int run_needle_count(seqan3::argument_parser & parser)
"for all sequences in the genome file based on the exact minimiser occurrences of "
"the given sequence files. Please run genome beforehand to create the genome file.";
parser.add_positional_option(sequence_files, "Please provide at least one sequence file.");
parser.add_option(include_file, '\0', "include", "Please provide one sequence file with transcripts.");
parser.add_option(include_file, '\0', "include", "Please provide one sequence file with transcripts.",seqan3::option_spec::required);
parser.add_option(genome_file, '\0', "genome", "Please provide one *.genome file created with the genome command.");
parser.add_flag(paired, 'p', "paired", "If set, experiments are paired. Default: Not paired.");

Expand Down
2 changes: 1 addition & 1 deletion test/cli/count_options_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ TEST_F(count_options_test, no_options)

TEST_F(count_options_test, fail_no_argument)
{
cli_test_result result = execute_app("needle count", "--seed 0");
cli_test_result result = execute_app("needle count", "--seed 0 --genome", data("mini_gen.genome")," --include", data("mini_gen.fasta"));
std::string expected
{
"Error. Incorrect command line input for count. Not enough positional arguments provided "
Expand Down

0 comments on commit fc9cbbe

Please sign in to comment.