aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-cli/src/meshbay_cli/__main__.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-cli/src/meshbay_cli/__main__.py')
-rw-r--r--packages/meshbay-cli/src/meshbay_cli/__main__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/meshbay-cli/src/meshbay_cli/__main__.py b/packages/meshbay-cli/src/meshbay_cli/__main__.py
index dbb5a19..dd13d50 100644
--- a/packages/meshbay-cli/src/meshbay_cli/__main__.py
+++ b/packages/meshbay-cli/src/meshbay_cli/__main__.py
@@ -13,6 +13,7 @@ import sys
from . import __version__
from .commands import (
browser_access,
+ chat,
decline,
devices,
get,
@@ -33,7 +34,7 @@ from .errors import INTERRUPTED, USAGE, CliError
ACTIONS = {"login": login, "logout": logout, "groups": groups, "invitations": invitations,
"join": join, "decline": decline, "leave": leave, "ls": ls, "search": search, "get": get,
- "put": put, "rm": rm, "devices": devices, "trust": trust,
+ "put": put, "rm": rm, "chat": chat, "devices": devices, "trust": trust,
"browser-access": browser_access}
@@ -118,6 +119,7 @@ def main(argv: list[str] | None = None) -> int:
return run()
parser = build_parser()
interactive = not argv
+ argv = chat.rewrite_count(argv, ACTIONS)
try:
args = parser.parse_args(argv)
except SystemExit as e: # --help, --version, or a usage error