Revision: 43160
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43160
Author:   campbellbarton
Date:     2012-01-05 11:02:27 +0000 (Thu, 05 Jan 2012)
Log Message:
-----------
print message for unknown args to make it clear that these are not recognized.

Modified Paths:
--------------
    trunk/blender/source/creator/creator.c

Modified: trunk/blender/source/creator/creator.c
===================================================================
--- trunk/blender/source/creator/creator.c      2012-01-05 10:34:50 UTC (rev 
43159)
+++ trunk/blender/source/creator/creator.c      2012-01-05 11:02:27 UTC (rev 
43160)
@@ -925,6 +925,12 @@
 
        /* Make the path absolute because its needed for relative linked blends 
to be found */
        char filename[FILE_MAX];
+
+       /* note, we could skip these, but so far we always tried to load these 
files */
+       if (argv[0][0] == '-') {
+               fprintf(stderr, "unknown argument, loading as file: %s\n", 
argv[0]);
+       }
+
        BLI_strncpy(filename, argv[0], sizeof(filename));
        BLI_path_cwd(filename);
 

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to