X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Ftool%2Fmain.cpp;h=c5b7dbc8a4159dd88605c663cde5cddff6cc12c7;hb=b3306a52f847c71ca900fa403ceebe953745147c;hp=4f1618ca94ffa50e1fcdaa721c08920590ef8b3d;hpb=9268bf3c8225b1efd2978599d9964f135da4426b;p=synfig.git diff --git a/synfig-core/trunk/src/tool/main.cpp b/synfig-core/trunk/src/tool/main.cpp index 4f1618c..c5b7dbc 100644 --- a/synfig-core/trunk/src/tool/main.cpp +++ b/synfig-core/trunk/src/tool/main.cpp @@ -35,6 +35,7 @@ #include #include #include +#include #include #include @@ -57,8 +58,13 @@ using namespace synfig; /* === M A C R O S ========================================================= */ +#ifdef ENABLE_NLS #undef _ #define _(x) gettext(x) +#else +#undef _ +#define _(x) (x) +#endif enum exit_code { @@ -299,12 +305,14 @@ void display_help(int amount) cerr<=1) + + cerr << endl << _("syntax: ") << progname << " [DEFAULT OPTIONS] ([SIF FILE] [SPECIFIC OPTIONS])..." << endl << endl; + + if(amount == 0) + Argument("--help",NULL,_("Print out usage and syntax info")); + else { Argument("-t","",_("Specify output target (Default:unknown)")); Argument("-w","",_("Set the image width (Use zero for file default)")); @@ -318,16 +326,13 @@ void display_help(int amount) 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","