File size: 560 Bytes
664a799
 
1d43aaa
664a799
 
 
 
 
fc0b387
664a799
 
 
1d43aaa
 
 
 
 
 
664a799
 
 
 
1d43aaa
 
664a799
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import argparse
from . import *
from .ingest import *
from abcli import logging
import logging

logger = logging.getLogger(__name__)

parser = argparse.ArgumentParser(name)
parser.add_argument(
    "task",
    type=str,
    help="ingest",
)
parser.add_argument(
    "--output_path",
    type=str,
    default="",
)
args = parser.parse_args()

success = False
if args.task == "ingest":
    success = ingest(args.output_path)
else:
    logger.error(f"-{name}: {args.task}: command not found.")

if not success:
    logger.error(f"-{name}: {args.task}: failed.")