doc: update
This commit is contained in:
+6
-3
@@ -4,14 +4,12 @@ Main entry point for the MARTe Autodoc project"
|
||||
Author: Martino Ferrari
|
||||
Email: martinogiordano.ferrari@iter.org
|
||||
"""
|
||||
import json
|
||||
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
from argparse import ArgumentParser
|
||||
|
||||
from MARTe.StandardParser import ParseException, StandardParser
|
||||
|
||||
import autodoc
|
||||
|
||||
__version__ = "0.0.0"
|
||||
@@ -36,6 +34,7 @@ def __args__():
|
||||
default="ERROR",
|
||||
help="Logging level (default: `ERROR`)",
|
||||
)
|
||||
parser.add_argument("--build", help="build output flag", default=True)
|
||||
parser.add_argument("--version", action="version", version=__version__)
|
||||
parser.add_argument(
|
||||
"-d", "--destination", help="Destination folder", type=str, default="."
|
||||
@@ -53,6 +52,8 @@ def main():
|
||||
sys.exit(1)
|
||||
config = {}
|
||||
if args.type == "marte":
|
||||
from MARTe.StandardParser import ParseException, StandardParser
|
||||
|
||||
parser = StandardParser()
|
||||
try:
|
||||
config = parser.parse_file(args.filename)
|
||||
@@ -65,6 +66,8 @@ def main():
|
||||
logging.error(f"Sometihng went wrong with file `{args.filename}`")
|
||||
sys.exit(1)
|
||||
else:
|
||||
import json
|
||||
|
||||
with open(args.filename, "r") as file:
|
||||
config = json.load(file)
|
||||
if not config:
|
||||
|
||||
Reference in New Issue
Block a user