[sheepdog] [PATCH] collie: print subcommand usage when function return EXIT_USAGE

MORITA Kazutaka morita.kazutaka at gmail.com
Wed May 15 19:24:32 CEST 2013


At Wed, 15 May 2013 20:26:13 +0800,
Kai Zhang wrote:
> 
> Output before:
> $collie vdi create test
> Please specify the VDI size
> 
> Output after:
> $collie vdi create test
> Please specify the VDI size
> Usage: collie vdi create [-P] [-c copies] [-a address] [-p port] [-h] <vdiname> <size>
> Options:
> -P, --prealloc          preallocate all the data objects
> -c, --copies            specify the data redundancy (number of copies)
> -a, --address           specify the daemon address (default: localhost)
> -p, --port              specify the daemon port
> -h, --help              display this help and exit
> 
> Signed-off-by: Kai Zhang <kyle at zelin.io>
> ---
>  collie/collie.c |    5 ++++-
>  collie/common.c |    5 ++++-
>  2 files changed, 8 insertions(+), 2 deletions(-)

Applied, thanks!

Kazutaka



More information about the sheepdog mailing list