projects
/
blender.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4723969
)
print message for unknown args to make it clear that these are not recognized.
author
Campbell Barton <ideasman42@gmail.com>
Thu, 5 Jan 2012 11:02:27 +0000
(11:02 +0000)
committer
Campbell Barton <ideasman42@gmail.com>
Thu, 5 Jan 2012 11:02:27 +0000
(11:02 +0000)
source/creator/creator.c
patch
|
blob
|
history
diff --git
a/source/creator/creator.c
b/source/creator/creator.c
index e15950a665c0f539362b5e5bc1789bbe67ea85ca..698646ce1b3a90c80ca295af6bd6366102978a9c 100644
(file)
--- 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);