Fixing Boolean CLI parameters

closes #3464

- Explicitly set Boolean CLI types to true if they are presenet
- Simplify logic where these parameters are used
I had a whole branch yesterday that created a new type "CommandLineFlag"
that did just this, it was basically a "true" only option, "false" if it
wasn't present.  However, I decided against this since it made some of the
logic more cumbersome and also made people question "what is this new
type?".  I decided to stick with what we have, it's more flexible and works
like everything else, valid vs invalid, etc...


On Wed, Aug 6, 2014 at 1:50 PM, Derek Gaston <notifications@github.com>
wrote:

> In framework/src/base/MooseApp.C:
>
> >
> >    params.addCommandLineParam<std::string>("dump", "--dump [search_string]", "Shows a dump of available input file syntax.");
> >    params.addCommandLineParam<std::string>("yaml", "--yaml", "Dumps input file syntax in YAML format.");
> > -  params.addCommandLineParam<bool>("syntax", "--syntax", "Dumps the associated Action syntax paths ONLY");
> > +  params.addCommandLineParam<bool>("syntax", "--syntax", false, "Dumps the associated Action syntax paths ONLY");
>
> If false is the only option then we shouldn't allow the user to set it...
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/idaholab/moose/pull/3655/files#r15898816>.
>