poljar / weechat-matrix

Weechat Matrix protocol script written in python
Other
963 stars 121 forks source link

Enhancement: '/matrix help help' should show same output as '/help matrix' #362

Open ikwyl6 opened 5 months ago

ikwyl6 commented 5 months ago

When I use '/matrix help' I get:

matrix: Too few arguments for command "/matrix help" (see /matrix help help)

'/matrix help help' I get:

[matrix]  /help <matrix-command> [<matrix-command>...]
display help about Matrix commands
matrix-command: a Matrix command name(internal name)

when I go 'help matrix' I get:

19:52 [matrix]  /server add <server-name> <hostname>[:<port>]
19:52                   delete|list|listfull <server-name>
19:52 
19:52 list, add, or remove Matrix servers
19:52 
19:52        list: list servers (without argument, this list is displayed)
19:52    listfull: list servers with detailed info for each server
19:52         add: add a new server
19:52      delete: delete a server
19:52 server-name: server to reconnect (internal name)
19:52    hostname: name or IP address of server
19:52        port: port of server (default: 443)
19:52 
19:52 Examples:
19:52   /matrix server listfull
19:52   /matrix server add matrix matrix.org:80
19:52   /matrix server delete matrix
19:52 
19:52 All matrix servers:
19:52     matrix_org
20:19 
20:19 [python/matrix]  /matrix  server add <server-name> <hostname>[:<port>]
20:19                           server delete|list|listfull <server-name>
20:19                           connect <server-name>
20:19                           disconnect <server-name>
20:19                           reconnect <server-name>
20:19                           help <matrix-command>
20:19 
20:19 Matrix chat protocol command
20:19 
20:19     server: list, add, or remove Matrix servers
20:19    connect: connect to Matrix servers
20:19 disconnect: disconnect from one or all Matrix servers
20:19  reconnect: reconnect to server(s)
20:19       help: show detailed command help

This output should be for 'matrix help help'. I didn't even know about the '/help matrix' command as all matrix commands are done using the '/matrix' command... If you point me in the right direction I could look at doing a PR..