Skip to content

Commit 0d434c9

Browse files
committed
Update: product type and selector are mandatory
1 parent f8c8f37 commit 0d434c9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ processor. The processor is invoked from the command line. Typing
2121
will print a detailed usage message to the screen
2222

2323
usage: kaleidoscope [-h]
24-
[--product-type {esa-cci-oc,esa-scope-exchange,ghrsst,glorys}]
25-
[--selector SELECTOR]
24+
--product-type {esa-cci-oc,esa-scope-exchange,ghrsst,glorys}
25+
--selector SELECTOR
2626
[--engine-reader {h5netcdf,netcdf4,zarr}]
2727
[--engine-writer {h5netcdf,netcdf4,zarr}]
2828
[--log-level {debug,info,warning,error,off}]

kaleidoscope/parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ def _add_options(parser):
6868
"--product-type",
6969
help="the product type.",
7070
choices=["esa-cci-oc", "esa-scope-exchange", "ghrsst", "glorys"],
71-
required=False,
71+
required=True,
7272
dest="product_type",
7373
)
7474
parser.add_argument(
7575
"--selector",
7676
help="the Monte Carlo stream selector. An integral number which "
7777
"must not be negative.",
7878
type=Parser.IntType(0),
79-
required=False,
79+
required=True,
8080
dest="selector",
8181
)
8282
parser.add_argument(

0 commit comments

Comments
 (0)