From 83849a3762007920305b6ce4b613a31e930cb758 Mon Sep 17 00:00:00 2001 From: Sebastian Muthwill Date: Tue, 9 Nov 2021 20:11:42 +0100 Subject: [PATCH] adds sys.exit and console log for cli #45 --- example/Meeting Capture Demo-doc.md | 9 +++------ main.py | 13 ++++++++++--- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/example/Meeting Capture Demo-doc.md b/example/Meeting Capture Demo-doc.md index 89e7892..faa8906 100644 --- a/example/Meeting Capture Demo-doc.md +++ b/example/Meeting Capture Demo-doc.md @@ -33,13 +33,11 @@ Contents This tool helps you to keep everythin in one place during your meetings. -Key -features are: +Key features are: - View meeting details - capture notes and pictures of whiteboards - assign tasks -- send meeting notes to -all attendees in one click +- send meeting notes to all attendees in one click @@ -365,8 +363,7 @@ Set(ShowOverlay, true) Create a sketch during a meeting. -The screen name "Sketch Screen" (notice the blank) akt's as a test for screen names -with blank +The screen name "Sketch Screen" (notice the blank) akt's as a test for screen names with blank #### OnVisible diff --git a/main.py b/main.py index 478980d..c270924 100644 --- a/main.py +++ b/main.py @@ -83,9 +83,16 @@ def main(argv): with open(config_file, "r", encoding='utf8') as file: config = yaml.safe_load(file) - - docstring = Docstring(pa_src_path, output_path, config) - docstring.create_documentation() + # run documentation creation process + print(f"Creating documentation for {pa_src_path}") + try: + docstring = Docstring(pa_src_path, output_path, config) + documentation_output_path = docstring.create_documentation() + print(f"Documentation created successfully: {documentation_output_path}") + sys.exit(0) + except Exception as e: + print("Error occured within documentation creation") + raise e def print_help(): print(main.__doc__)