From bb130f350c23ed6537ace710dfffacabbe62647c Mon Sep 17 00:00:00 2001 From: Edwin Hoksberg Date: Sat, 24 Mar 2018 16:01:48 +0100 Subject: [PATCH] Regenerate readme usage and fix cli usage text --- README.md | 15 +++++++++------ main.go | 5 +++-- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index f0d3602..0c5ba83 100644 --- a/README.md +++ b/README.md @@ -7,16 +7,18 @@ You can find the latest release including binaries [here](https://github.com/Edw ## Usage ``` NAME: - beanstalkd-cli - A simple cli interface for managing beanstalkd queues. - - Homepage: https://github.com/edwinhoksberg/beanstalkd-cli - Commit: a7b7f2db5f5b9dd3a1978c107dbd96547394429c + beanstalkd-cli USAGE: - beanstalkd-cli [global options] command [command options] [arguments...] + A simple cli interface for managing beanstalkd queues. + + Homepage: https://github.com/edwinhoksberg/beanstalkd-cli VERSION: - 1.2.7 + 1.2.7 [5e2ef1289d916807f5a4f787dc9634b9753fa4cb] + +AUTHOR: + Edwin Hoksberg COMMANDS: monitor Monitor the beanstalkd queues @@ -28,6 +30,7 @@ COMMANDS: GLOBAL OPTIONS: --verbose set this to enable debug logging + --quiet set this to disable logging --server value The server name where beanstalkd is running (default: "127.0.0.1") --port value The port on which beanstalkd is listening (default: 11300) --help, -h show help diff --git a/main.go b/main.go index cdbe2c7..b976bed 100644 --- a/main.go +++ b/main.go @@ -10,8 +10,8 @@ import ( ) var ( - Name string - Version string + Name string + Version string ) func main() { @@ -20,6 +20,7 @@ func main() { app := cli.NewApp() app.Name = Name + app.Usage = "" app.HelpName = Name app.Version = Version app.Authors = []cli.Author{