Commit b353feb 1 parent eeeb6ae commit b353feb Copy full SHA for b353feb
File tree 3 files changed +7
-5
lines changed
3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 5
5
import sys
6
6
from types import ModuleType
7
7
import warnings
8
- from typing import Callable
9
8
10
9
from STACpopulator import __version__ , implementations
11
10
from STACpopulator .exceptions import STACPopulatorError
12
11
from STACpopulator .log import setup_logging
13
12
14
13
15
- def add_parser_args (parser : argparse .ArgumentParser ) -> dict [ str , Callable ] :
14
+ def add_parser_args (parser : argparse .ArgumentParser ) -> None :
16
15
parser .add_argument (
17
16
"--version" ,
18
17
"-V" ,
Original file line number Diff line number Diff line change 9
9
from pystac .extensions .datacube import DatacubeExtension
10
10
from requests .sessions import Session
11
11
12
+ from STACpopulator import cli
12
13
from STACpopulator .log import add_logging_options
13
14
from STACpopulator .request_utils import add_request_options , apply_request_options
14
15
from STACpopulator .extensions .cmip6 import CMIP6Helper , CMIP6Properties
@@ -131,8 +132,8 @@ def main(*args: str) -> int:
131
132
parser = argparse .ArgumentParser ()
132
133
add_parser_args (parser )
133
134
ns = parser .parse_args (args or None )
134
- return runner ( ns )
135
-
135
+ ns . populator = "CMIP6_UofT"
136
+ return cli . run ( ns )
136
137
137
138
if __name__ == "__main__" :
138
139
sys .exit (main ())
Original file line number Diff line number Diff line change 6
6
7
7
from requests .sessions import Session
8
8
9
+ from STACpopulator import cli
9
10
from STACpopulator .log import add_logging_options
10
11
from STACpopulator .request_utils import add_request_options , apply_request_options
11
12
from STACpopulator .input import STACDirectoryLoader
@@ -72,7 +73,8 @@ def main(*args: str) -> int:
72
73
parser = argparse .ArgumentParser ()
73
74
add_parser_args (parser )
74
75
ns = parser .parse_args (args or None )
75
- return runner (ns )
76
+ ns .populator = "DirectoryLoader"
77
+ return cli .run (ns )
76
78
77
79
78
80
if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments