From: <bni...@us...> - 2006-12-12 21:33:32
|
Revision: 422 http://svn.sourceforge.net/omc/?rev=422&view=rev Author: bnicholes Date: 2006-12-12 13:33:29 -0800 (Tue, 12 Dec 2006) Log Message: ----------- Make the display method of the omcclpcommand class obey the default output format Modified Paths: -------------- clp/trunk/src/omcclpcommand.cpp Modified: clp/trunk/src/omcclpcommand.cpp =================================================================== --- clp/trunk/src/omcclpcommand.cpp 2006-12-12 17:23:19 UTC (rev 421) +++ clp/trunk/src/omcclpcommand.cpp 2006-12-12 21:33:29 UTC (rev 422) @@ -650,8 +650,13 @@ OMCCLPProgram* clpSession = getCLPSession(); std::ostream& clpout(clpSession->clpout()); - displayHeader(OUTPUT_DISPLAY_TEXT); + /* Get any output format option information from the + command object. This should have been put here during + the parsing phase. */ + Int32 optArg = getOptionValueInt(E_OPT_OUTPUT, E_SUBOPT_FORMAT); + displayHeader(optArg); + if (!getErrMessage().empty()) { clpout << getErrMessage(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |