Files
dataset-uploader/features/upload_datasets/argument_parsing.feature

53 lines
1.5 KiB
Gherkin

Feature: Command-line Argument Parsing
As a user
I want flexible command-line options
So that I can control the processing workflow
Scenario: Parse dataset selection argument
When I parse args with "--dataset wordnet"
Then the dataset list should contain "wordnet"
Scenario: Parse multiple datasets
When I parse args with "--dataset wordnet --dataset yago-4.5"
Then the dataset list should contain "wordnet"
And the dataset list should contain "yago-4.5"
Scenario: Parse category argument
When I parse args with "--category small"
Then the category should be "small"
Scenario: Parse skip flags
When I parse args with "--skip-download --skip-convert --skip-upload"
Then skip_download should be True
And skip_convert should be True
And skip_upload should be True
Scenario: Parse dry run flag
When I parse args with "--dry-run"
Then dry_run should be True
Scenario: Parse remove flag
When I parse args with "--rm"
Then rm should be True
Scenario: Parse repeat flag
When I parse args with "--repeat"
Then repeat should be True
Scenario: Parse parallel argument
When I parse args with "--parallel 5"
Then parallel should be 5
Scenario: Parse base directory
When I parse args with "--base-dir /custom/path"
Then base_dir should be "/custom/path"
Scenario: Parse sheet argument
When I parse args with "--sheet"
Then sheet should be True
Scenario: Parse list options
When I parse args with "--list"
Then list_datasets should be True