Skip to content

Commit

Permalink
Add TODO reminder for verbose flag, to be fixed in #118.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-cattermole committed Aug 17, 2019
1 parent 745a708 commit b1c0440
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/MMSolverCmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ MSyntax MMSolverCmd::newSyntax() {
MSyntax::kUnsigned);
syntax.addFlag(ITERATIONS_FLAG, ITERATIONS_FLAG_LONG,
MSyntax::kUnsigned);
// TODO: Deprecate 'verbose' flag, replace with 'log level' flag.
syntax.addFlag(VERBOSE_FLAG, VERBOSE_FLAG_LONG,
MSyntax::kBoolean);
syntax.addFlag(DEBUG_FILE_FLAG, DEBUG_FILE_FLAG_LONG,
Expand Down Expand Up @@ -137,6 +138,7 @@ MStatus MMSolverCmd::parseArgs(const MArgList &args) {
CHECK_MSTATUS_AND_RETURN_IT(status);

// Get 'Verbose'
// TODO: Deprecate 'verbose' flag, replace with 'log level' flag.
m_verbose = VERBOSE_DEFAULT_VALUE;
if (argData.isFlagSet(VERBOSE_FLAG)) {
status = argData.getFlagArgument(VERBOSE_FLAG, 0, m_verbose);
Expand Down
1 change: 1 addition & 0 deletions src/MMSolverCmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@


// Should the solver print out verbose information while solving?
// TODO: Deprecate 'verbose' flag, replace with 'log level' flag.
#define VERBOSE_FLAG "-v"
#define VERBOSE_FLAG_LONG "-verbose"
#define VERBOSE_DEFAULT_VALUE false
Expand Down

0 comments on commit b1c0440

Please sign in to comment.