Show which output target is used if it has been chosen automatically, not specified...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Mon, 4 Feb 2008 23:35:02 +0000 (23:35 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Mon, 4 Feb 2008 23:35:02 +0000 (23:35 +0000)
git-svn-id: http://svn.voria.com/code@1581 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/tool/main.cpp

index e595f42..c5b7dbc 100644 (file)
@@ -960,7 +960,10 @@ int main(int argc, char *argv[])
                                string ext = filename_extension(job_list.front().outfilename);
                                if (ext.length()) ext = ext.substr(1);
                                if(Target::ext_book().count(ext))
+                               {
                                        target_name=Target::ext_book()[ext];
+                                       info("target name not specified - using %s", target_name.c_str());
+                               }
                                else
                                {
                                        string lower_ext(ext);
@@ -969,7 +972,10 @@ int main(int argc, char *argv[])
                                                lower_ext[i] = tolower(ext[i]);
 
                                        if(Target::ext_book().count(lower_ext))
+                                       {
                                                target_name=Target::ext_book()[lower_ext];
+                                               info("target name not specified - using %s", target_name.c_str());
+                                       }
                                        else
                                                target_name=ext;
                                }