print message for unknown args to make it clear that these are not recognized.

This commit is contained in:
Campbell Barton 2012-01-05 11:02:27 +00:00
parent 472396945e
commit 7f555daa64

@ -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);