feat: startup banner and improved --help description
This commit is contained in:
parent
47f8b44330
commit
1cbeb5e41c
23
main.py
23
main.py
@ -70,15 +70,34 @@ def _get_meeting_url() -> str | None:
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
parser = argparse.ArgumentParser(description="TeamPulse — Teams Chat Auswertung")
|
parser = argparse.ArgumentParser(
|
||||||
|
prog="teampulse",
|
||||||
|
description="TeamPulse — Wertet den Chat einer laufenden Teams-Besprechung aus.",
|
||||||
|
epilog=(
|
||||||
|
"Ablauf: Browser öffnet sich → zum Meeting-Chat navigieren → "
|
||||||
|
"!start 'Vortragende/r' im Chat posten → !stop zum Beenden. "
|
||||||
|
"Das Memo wird automatisch gespeichert und auf den nächsten !start gewartet."
|
||||||
|
),
|
||||||
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--history",
|
"--history",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
help="Bestehende Nachrichten auswerten (Standard: nur neue ab Scriptstart)",
|
help="Bestehende Nachrichten auswerten (Standard: nur neue Nachrichten ab Scriptstart)",
|
||||||
)
|
)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
include_history: bool = args.history
|
include_history: bool = args.history
|
||||||
|
|
||||||
|
print("─" * 60)
|
||||||
|
print(" TeamPulse — Teams Chat Auswertung")
|
||||||
|
print("─" * 60)
|
||||||
|
if include_history:
|
||||||
|
print(" Modus: bestehende + neue Nachrichten")
|
||||||
|
else:
|
||||||
|
print(" Modus: nur neue Nachrichten ab jetzt")
|
||||||
|
print(" Trigger: !start Name | !stop")
|
||||||
|
print(" Beenden: Ctrl+C")
|
||||||
|
print("─" * 60)
|
||||||
|
|
||||||
meeting_url = _get_meeting_url()
|
meeting_url = _get_meeting_url()
|
||||||
|
|
||||||
with sync_playwright() as playwright:
|
with sync_playwright() as playwright:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user