From c6b96867f534d312015b12fd8f1e9a008c1ab848 Mon Sep 17 00:00:00 2001 From: gballintijn Date: Sat, 14 Feb 2009 11:33:45 +0000 Subject: [PATCH] #2513683: Fix misuse of constructor. * Don't abuse the constructor of class Argument as a mere function. * Don't use an integer value as a boolean flag. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2344 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/tool/main.cpp | 108 +++++++++++++++++------------------- 1 file changed, 52 insertions(+), 56 deletions(-) diff --git a/synfig-core/trunk/src/tool/main.cpp b/synfig-core/trunk/src/tool/main.cpp index fbff491..38a7c64 100644 --- a/synfig-core/trunk/src/tool/main.cpp +++ b/synfig-core/trunk/src/tool/main.cpp @@ -304,70 +304,66 @@ void signal_test() /* === P R O C E D U R E S ================================================= */ -void display_help(int amount) +void display_help_option(const char *flag, const char *arg, string description) { - class Argument - { - public: - Argument(const char *flag,const char *arg, string description) - { - const char spaces[]=" "; - if(arg) - cerr<",_("Specify output target (Default:unknown)")); - Argument("-w","",_("Set the image width (Use zero for file default)")); - Argument("-h","",_("Set the image height (Use zero for file default)")); - Argument("-s","",_("Set the diagonal size of image window (Span)")); - Argument("-a","<1...30>",_("Set antialias amount for parametric renderer.")); - Argument("-Q","<0...10>",strprintf(_("Specify image quality for accelerated renderer (default=%d)"),DEFAULT_QUALITY).c_str()); - Argument("-g","",_("Gamma (default=2.2)")); - Argument("-v",NULL,_("Verbose Output (add more for more verbosity)")); - Argument("-q",NULL,_("Quiet mode (No progress/time-remaining display)")); - Argument("-c","",_("Render the canvas with the given id instead of the root.")); - Argument("-o","",_("Specify output filename")); - Argument("-T","<# of threads>",_("Enable multithreaded renderer using specified # of threads")); - Argument("-b",NULL,_("Print Benchmarks")); - Argument("--fps","",_("Set the frame rate")); - Argument("--time","