int nbugs, const char **bugs,
output_env_t *oenv)
{
- gmx_bool bHelp = FALSE, bHidden = FALSE, bQuiet = FALSE, bVersion = FALSE;
+ gmx_bool bHelp = FALSE, bHidden = FALSE;
+ gmx_bool bQuiet = FALSE, bVerbose = FALSE, bVersion = FALSE;
const char *manstr[] = {
NULL, "no", "html", "tex", "nroff", "ascii",
"completion", "py", "xml", "wiki", NULL
NULL, "fs", "ps", "ns", "us", "ms", "s",
NULL
};
- int nicelevel = 0, debug_level = 0, verbose_level = 0;
+ int nicelevel = 0, debug_level = 0;
char *deffnm = NULL;
real tbegin = 0, tend = 0, tdelta = 0;
gmx_bool bView = FALSE;
"Print help info and quit" },
{ "-version", FALSE, etBOOL, {&bVersion},
"Print version info and quit" },
- { "-verb", FALSE, etINT, {&verbose_level},
- "HIDDENLevel of verbosity for this program" },
+ { "-verbose", FALSE, etBOOL, {&bVerbose},
+ "HIDDENShow options during normal run" },
{ "-hidden", FALSE, etBOOL, {&bHidden},
"HIDDENPrint hidden options" },
{ "-quiet", FALSE, etBOOL, {&bQuiet},
/* set program name, command line, and default values for output options */
output_env_init(oenv, *argc, argv, (time_unit_t)nenum(time_units), bView,
- (xvg_format_t)nenum(xvg_format), verbose_level, debug_level);
+ (xvg_format_t)nenum(xvg_format), 0, debug_level);
if (bVersion)
{
#endif
#endif
- if (!(FF(PCA_QUIET) || bQuiet ))
+ if (!(FF(PCA_QUIET) || bQuiet))
{
if (bHelp)
{
write_man(stderr, "help", output_env_get_program_name(*oenv),
ndesc, desc, nfile, fnm, npall, all_pa, nbugs, bugs, bHidden);
}
- else
+ else if (bVerbose)
{
pr_fns(stderr, nfile, fnm);
print_pargs(stderr, npall, all_pa, FALSE);
bool bHelp_;
bool bShowHidden_;
- bool bQuiet_;
+ bool bVerbose_;
//! Name of the trajectory file (empty if not provided).
std::string trjfile_;
//! Name of the topology file (empty if no topology provided).
TrajectoryAnalysisRunnerCommon::Impl::Impl(TrajectoryAnalysisSettings *settings)
: settings_(*settings),
- bHelp_(false), bShowHidden_(false), bQuiet_(false),
+ bHelp_(false), bShowHidden_(false), bVerbose_(false),
startTime_(0.0), endTime_(0.0), deltaTime_(0.0),
grps_(NULL),
bTrajOpen_(false), fr(NULL), gpbc_(NULL), status_(NULL), oenv_(NULL)
options->addOption(BooleanOption("hidden").store(&impl_->bShowHidden_)
.hidden()
.description("Show hidden options"));
- options->addOption(BooleanOption("quiet").store(&impl_->bQuiet_)
+ options->addOption(BooleanOption("verbose").store(&impl_->bVerbose_)
.hidden()
- .description("Hide options in normal run"));
+ .description("Show options during normal run"));
// Add common file name arguments.
options->addOption(FileNameOption("f")
{
HelpFlags flags = 0;
- if (!impl_->bQuiet_)
+ if (impl_->bVerbose_)
{
flags |= efHelpShowOptions;
- if (impl_->bHelp_)
- {
- flags |= efHelpShowDescriptions;
- }
- if (impl_->bShowHidden_)
- {
- flags |= efHelpShowHidden;
- }
+ }
+ if (impl_->bHelp_)
+ {
+ flags |= efHelpShowOptions;
+ flags |= efHelpShowDescriptions;
+ }
+ if (flags != 0 && impl_->bShowHidden_)
+ {
+ flags |= efHelpShowHidden;
}
return flags;
}