X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Ftool%2Fmain.cpp;h=7fa7357b251ac90b0b94605eb824a59a66072776;hb=dcf97b6d6d96b755b8199f32658ba057388a27a8;hp=8141c0095f37739cc839d65636fc2b1d1e7e2a80;hpb=563c0b4883cce4c1a73a496b0fa585e9daa8ff80;p=synfig.git diff --git a/synfig-core/trunk/src/tool/main.cpp b/synfig-core/trunk/src/tool/main.cpp index 8141c00..7fa7357 100644 --- a/synfig-core/trunk/src/tool/main.cpp +++ b/synfig-core/trunk/src/tool/main.cpp @@ -6,7 +6,7 @@ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley -** Copyright (c) 2007 Chris Moore +** Copyright (c) 2007, 2008 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -35,6 +35,7 @@ #include #include #include +#include #include #include @@ -57,6 +58,14 @@ 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 { SYNFIGTOOL_OK = 0, @@ -249,6 +258,7 @@ struct Job int quality; bool sifout; + bool list_canvases; }; typedef list arg_list_t; @@ -258,9 +268,7 @@ void guid_test() { cout<<"GUID Test"<=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)")); @@ -315,14 +325,17 @@ 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","