X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Ftool%2Fmain.cpp;h=fbf64b05caa3b4b9d660fb49bf87e3b5ddc6cbfb;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=13fc4384dbed7b911a02b82983526a2af738f70d;hpb=6e947795bf7be89b7a4d5e85b7610101f5847bc5;p=synfig.git diff --git a/synfig-core/trunk/src/tool/main.cpp b/synfig-core/trunk/src/tool/main.cpp index 13fc438..fbf64b0 100644 --- a/synfig-core/trunk/src/tool/main.cpp +++ b/synfig-core/trunk/src/tool/main.cpp @@ -50,6 +50,7 @@ #include #include #include +#include #endif using namespace std; @@ -304,70 +305,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","