Skip to content

Commit

Permalink
adds sys.exit and console log for cli #45
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-muthwill committed Nov 9, 2021
1 parent 4d7648f commit 83849a3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
9 changes: 3 additions & 6 deletions example/Meeting Capture Demo-doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -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



Expand Down Expand Up @@ -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

Expand Down
13 changes: 10 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down

0 comments on commit 83849a3

Please sign in to comment.