-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcli.py
More file actions
25 lines (19 loc) · 687 Bytes
/
Copy pathcli.py
File metadata and controls
25 lines (19 loc) · 687 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/python
# -*- coding: latin-1 -*-
"""Console script for gogoportefollioopt."""
import argparse
import sys
from jobs.ingestion import Ingestion
def main():
"""Console script for gogoportefollioopt."""
parser = argparse.ArgumentParser()
#parser.add_argument('_', nargs='*')
parser.add_argument("-c", "--config", help=" fichier de configuration",required=True)
parser.add_argument("-d", "--data", help=" symbols des stocks à récuperer",required=True)
args = parser.parse_args()
print("Arguments: " + str(args))
ingestion = Ingestion(args)
ingestion.run()
return 0
if __name__ == "__main__":
sys.exit(main()) # pragma: no cover