Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-01-05 15:02:27 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-01-05 15:02:27 +0400
commit7f555daa64d5e80f8d9dd2acf592d18dc8986309 (patch)
tree3e38691496fb8e0c5420176647fc2849f8a1ea4d /source/creator
parent472396945ec01f42f35a5ae90be08a95696b952f (diff)
print message for unknown args to make it clear that these are not recognized.
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index e15950a665c..698646ce1b3 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -925,6 +925,12 @@ static int load_file(int UNUSED(argc), const char **argv, void *data)
/* 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);