bug-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 2.1.13 cfexecd --no-splay requires argument


From: Mark Burgess
Subject: Re: 2.1.13 cfexecd --no-splay requires argument
Date: Thu, 10 Mar 2005 21:54:44 +0100

On Thu, 2005-03-10 at 14:43 +0000, Jim Wight wrote:
> If given --no-splay as argument, cfexecd complains that --no-splay
> requires an argument. It is clear from the source why that is:
> 
> struct option CFDOPTIONS[] =
>    {
>    { "help",no_argument,0,'h' },
>    { "debug",optional_argument,0,'d' },
>    { "verbose",no_argument,0,'v' },
>    { "file",required_argument,0,'f' },
>    { "no-splay",required_argument,0,'q' },
>    { "no-fork",no_argument,0,'F' },
>    { "once",no_argument,0,'1'},
>    { "foreground",no_argument,0,'g'},
>    { "parse-only",no_argument,0,'p'},
>    { "ld-library-path",required_argument,0,'L'},
>    { NULL,0,0,0 }
>    };
> 
> Furthermore, -q and -f are rejected as invalid options. They've been
> forgotten about altogether. From the source:
> 
> while ((c=getopt_long(argc,argv,"L:d:vhpFV1g",CFDOPTIONS,&optindex)) != EOF)
>                                  ^^^^^^^^^^^
> 
> -V is not documented (at 
> http://www.cfengine.org/docs/cfengine-Reference.html#Cfexecd-reference)
> 
> Jim

You are right - no splay should not have an argument. File should not
even be there at all. It does not make sense. But my getopt contained a
q...

M





reply via email to

[Prev in Thread] Current Thread [Next in Thread]