diff options
| author | Frederick Muriuki Muriithi | 2026-03-25 13:03:22 -0500 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2026-03-25 13:03:22 -0500 |
| commit | b727b223fb6d1e02a5eb4d7b1a6f5a79773fc648 (patch) | |
| tree | a70cbf0a1a3f17b57420fac4691ec55fcfe0d740 /scripts/cli/options.py | |
| parent | 34524729dd66eb680d042178d42d321ce209aa60 (diff) | |
| download | gn-uploader-b727b223fb6d1e02a5eb4d7b1a6f5a79773fc648.tar.gz | |
Add the DATASET-ID argument to command-line interfaces.
Diffstat (limited to 'scripts/cli/options.py')
| -rw-r--r-- | scripts/cli/options.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/cli/options.py b/scripts/cli/options.py index 70d2a27..58d3df4 100644 --- a/scripts/cli/options.py +++ b/scripts/cli/options.py @@ -44,3 +44,13 @@ def add_population_id(parser: ArgumentParser) -> ArgumentParser: type=int, help="The ID for the population to operate on.") return parser + + +def add_dataset_id(parser: ArgumentParser) -> ArgumentParser: + """Add dataset-id as a mandatory argument.""" + parser = add_population_id(parser) + parser.add_argument("dataset_id", + metavar="DATASET-ID", + type=int, + help="The ID for the dataset to operate on.") + return parser |
