syndicate-storage / syndicate-core

Scalable Software-define Storage System
Apache License 2.0
4 stars 1 forks source link

Elaborate help menus in syndicate admin tool #14

Open iychoi opened 7 years ago

iychoi commented 7 years ago

Syndicate admin tool does not show available MS commands. Also it returns None for invalid commands without complaining.

syndicate@demo1:~$ syndicate xxx
Help for 'xxx':
None
syndicate@demo1:~$ syndicate
Help for 'None':
None
syndicate@demo1:~$ syndicate -h
usage: /usr/bin/syndicate [-h] [--username username]
                          [--gateway_keys gateway_keys] [--no_reload]
                          [--debug] [--ipc_dir ipc_dir]
                          [--syndicate_keys syndicate_keys]
                          [--certs_dir certs_dir] [--trust_public_key]
                          [--volume_keys volume_keys] [--MS_url MS_url]
                          [--user_keys user_keys] [--config config]
                          [params [params ...]]

Syndicate Administration Tool

positional arguments:
  params                Method name, followed by parameters (positional and
                        keyword supported).

optional arguments:
  -h, --help            show this help message and exit
  --username username, -u username
                        The ID of the Syndicate user to run as.
  --gateway_keys gateway_keys, -G gateway_keys
                        Path to the directory holding the Gateway private
                        keys.
  --no_reload, -n       If set, do not send or broadcast reload requests to
                        gateways on volume or gateway update.
  --debug, -d           Verbose debugging output
  --ipc_dir ipc_dir, -i ipc_dir
                        Path to the directory to store IPC objects for
                        gateways.
  --syndicate_keys syndicate_keys, -S syndicate_keys
                        Path to the directory holding the Syndicate public
                        keys.
  --certs_dir certs_dir, -C certs_dir
                        Path to the directory to store remotely-fetched
                        certificates.
  --trust_public_key, -t
                        If set, automatically trust the Syndicate public key
                        if it is not yet trusted.
  --volume_keys volume_keys, -V volume_keys
                        Path to the directory holding the Volume public keys.
  --MS_url MS_url, -m MS_url
                        URL to your Syndicate MS
  --user_keys user_keys, -U user_keys
                        Path to the directory holding the User private keys.
  --config config, -c config
                        Path to your config file (default is
                        ~/.syndicate/syndicate.conf).
syndicate@demo1:~$