RedisLabs / redis-cluster-proxy

A proxy for Redis clusters.
GNU Affero General Public License v3.0
993 stars 132 forks source link

(minor / aesthetic) inline help does display big text for --port and --bind options #19

Closed bsergean closed 4 years ago

bsergean commented 4 years ago
(venv) redis-cluster-proxy$ redis-cluster-proxy --help
Redis Cluster Proxy v999.999.999 (unstable)
Usage: redis-cluster-proxy [OPTIONS] [cluster_host:cluster_port]
  -c <file>            Configuration file
  -p, --port <port>    Port (default: 7777). Use 0 in order to disable                        TCP connections at all
  --max-clients <n>    Max clients (default: 10000)
  --threads <n>        Thread number (default: 8, max: 500)
  --tcpkeepalive       TCP Keep Alive (default: 300)
  --tcp-backlog        TCP Backlog (default: 511)
  --daemonize          Execute the proxy in background
  --unixsocket <sock_file>     UNIX socket path (empty by default)
  --unixsocketperm <mode>      UNIX socket permissions (default: 0)
  --bind <address>     Bind an interface (can be used multiple times                        to bind multiple interfaces)
  --disable-multiplexing <opt> When should multiplexing disabled
                               (never|auto|always) (default: auto)
  --enable-cross-slot  Enable cross-slot queries (warning: cross-slot
                       queries routed to multiple nodes cannot be atomic).
  -a, --auth <passw>   Authentication password
  --auth-user <name>   Authentication username
  --disable-colors     Disable colorized output
  --log-level <level>  Minimum log level: (default: info)
                       (debug|info|success|warning|error)
  --dump-queries       Dump query args (only for log-level 'debug') 
  --dump-buffer        Dump query buffer (only for log-level 'debug') 
  --dump-queues        Dump request queues (only for log-level 'debug') 
  -h, --help         Print this help

There's a bunch of space for the --bind and --port options. If we compare it to --log-level and --enable-cross-slot options which are tidier / more compact. This has to be a simple extra 'space' formatting thing.