diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-01-05 15:02:27 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-01-05 15:02:27 +0400 |
commit | 7f555daa64d5e80f8d9dd2acf592d18dc8986309 (patch) | |
tree | 3e38691496fb8e0c5420176647fc2849f8a1ea4d /source/creator | |
parent | 472396945ec01f42f35a5ae90be08a95696b952f (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.c | 6 |
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); |