Add --debug flag to kpod to turn up logging level to debug

Also set default level of logging to errors,  we should not see
info messages in the kpod command line.

While adding this patch, I found missing options in kpod command line
and bash completions, so I added them in.

Also fixed some sorting issues in the way commands are displayer in help or in
bash completions.

Finally fixed the error message to be output on failure using logrus.Errorf, so
we don't get the stack any longer.

Also updated README.md with missing kpod commands.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh 2017-08-10 13:58:29 -04:00
parent fb2ee59225
commit 464d6852de
6 changed files with 73 additions and 16 deletions

View file

@ -21,9 +21,9 @@ Information display here pertain to the host, current storage stats, and build o
Show additional information
**--debug, -D**
**--json**
Show additional information
Output as JSON instead of the default YAML",
## EXAMPLE

View file

@ -5,8 +5,7 @@
kpod - Simple management tool for containers and images
## SYNOPSIS
**kpod**
[**--help**|**-h**]
**kpod** [*options*] COMMAND
# DESCRIPTION
kpod is a simple client only tool to help with debugging issues when daemons
@ -24,6 +23,24 @@ has the capability to debug pods/images created by crio.
**--help, -h**
Print usage statement
**--config value, -c**=**"config.file"**
Path of a config file detailing container server configuration options
**--debug**
Print debugging information
**--root**=**value**
Path to the root directory in which data, including images, is stored
**--runroot**=**value**
Path to the 'run directory' where all state information is stored
**--storage-driver, -s**=**value**
Select which storage driver is used to manage storage of images and containers (default is overlay)
**--storage-opt**=**value**
Used to pass an option to the storage driver
**--version, -v**
Print the version