[sheepdog] [PATCH 0/6] introduce sd_getopt to parse command line options

Liu Yuan namei.unix at gmail.com
Mon Nov 5 14:22:37 CET 2012

On 11/05/2012 06:51 PM, morita.kazutaka at gmail.com wrote:
> This series introduces sd_getopt to parse command line options, which
> aims for us to maintain sheep options easily.  With this patch, what
> we need to do to add a command line option is only modifying a
> sheep_option variable; short options, long options, and help message
> will be automatically generated.

$ sheep -w

will get a core dump. I am expecting to see the help message for '-w' like

Valid cache types are:

Object cache
  -w object[:option[,option[,...]]]
    size=<size>                     specify a cache size for object cache
    directio=<on|off>               avoid using gateway page cache

Disk cache
  -w disk


More information about the sheepdog mailing list