[sheepdog] [PATCH] collie: correct command-line options parser

輕微 cz at de3eb.cn
Fri Mar 15 08:55:45 CET 2013


I means "[root at de3eb sheepdog]# collie cluster recover disable -p 7001" will output a usage, and my patch fix it.


sorry,again reply all.


[root at de3eb sheepdog]# collie cluster recover disable -p 7001
Usage: collie cluster recover {force|enable|disable} [-a address] [-f] [-p port] [-h]
Available subcommands:
  force                   force recover cluster immediately
  enable                  enable automatic recovery and run once recover if necessary
  disable                 disable automatic recovery
Options:
  -a, --address           specify the daemon address (default: localhost)
  -f, --force             do not prompt for confirmation
  -p, --port              specify the daemon port
  -h, --help              display this help and exit

 
Thanks,
ChenZhe
------------------ Original ------------------
From:  "Liu Yuan"<namei.unix at gmail.com>;
Date:  Fri, Mar 15, 2013 03:42 PM
To:  "輕微"<cz at de3eb.cn>; 

Subject:  Re: [sheepdog] [PATCH] collie: correct command-line options parser

 
On 03/15/2013 03:35 PM, 輕微 wrote:
> but there is no difference between "-p7001" and "-p 7001".
> 

What do you mean by 'no difference'? -p7001 means you are specifying an
option named 'p7001' and "-p 7001" means you are specifying option named
'-p' and pass 7001 as its argument.

Thanks,
Yuan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/sheepdog/attachments/20130315/93060c35/attachment-0004.html>


More information about the sheepdog mailing list