mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 07:26:29 +03:00
Apply suggestions from code review
some fixes thanks to @adbenitez Co-Authored-By: Asiel Díaz Benítez <asieldbenitez@gmail.com>
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
- introduced PerAccount and Global hooks that plugins can implement
|
- introduced PerAccount and Global hooks that plugins can implement
|
||||||
|
|
||||||
- introduced `member_added()` and `member_removed` plugin events.
|
- introduced `member_added()` and `member_removed()` plugin events.
|
||||||
|
|
||||||
- introduced two documented examples for an echo and a group-membership
|
- introduced two documented examples for an echo and a group-membership
|
||||||
tracking plugin.
|
tracking plugin.
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ def run_cmdline(argv=None, account_plugins=None):
|
|||||||
if argv is None:
|
if argv is None:
|
||||||
argv = sys.argv
|
argv = sys.argv
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(prog="simple-echo")
|
parser = argparse.ArgumentParser(prog=argv[0] if argv else None)
|
||||||
parser.add_argument("--show-ffi", action="store_true", help="show low level ffi events")
|
parser.add_argument("--show-ffi", action="store_true", help="show low level ffi events")
|
||||||
parser.add_argument("--db", action="store", help="database file")
|
parser.add_argument("--db", action="store", help="database file")
|
||||||
parser.add_argument("--email", action="store", help="email address")
|
parser.add_argument("--email", action="store", help="email address")
|
||||||
|
|||||||
Reference in New Issue
Block a user