From 54daccda76289f14d94b372bf70e48e37aac8adc Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 3 Mar 2008 08:55:45 +0000 Subject: [PATCH] updated the notes for blenders help message --- source/creator/creator.c | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/source/creator/creator.c b/source/creator/creator.c index 4d8b63f18f0..6a6228bcd3d 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -174,20 +174,14 @@ static void print_version(void) static void print_help(void) { printf ("Blender %d.%02d (sub %d) Build\n", G.version/100, G.version%100, BLENDER_SUBVERSION); - printf ("Usage: blender [options ...] [file]\n"); - printf ("Note: Arguments are executed in the order they are given. eg.\n"); - printf (" blender -b test.blend -f 1 -o /tmp\n"); - printf (" ...may not render to /tmp because '-f 1' renders before the output path is set\n"); - printf (" blender -b -o /tmp test.blend -f 1\n"); - printf (" ...may not render to /tmp because loading the blend file overwrites the output path that was set\n"); - printf (" \"blender -b test.blend -o /tmp -f 1\" works as expected.\n"); + printf ("Usage: blender [args ...] [file] [args ...]\n"); printf ("\nRender options:\n"); printf (" -b \tRender in background (doesn't load the user defaults .B.blend file)\n"); printf (" -a render frames from start to end (inclusive), only works when used after -b\n"); printf (" -S \tSet scene \n"); printf (" -f \tRender frame and save it\n"); - printf (" -s \tSet start to frame (use with -a)\n"); - printf (" -e \tSet end to frame (use with -a)\n"); + printf (" -s \tSet start to frame (use before the -a argument)\n"); + printf (" -e \tSet end to frame (use before the -a argument)\n"); printf (" -o \tSet the render path and file name.\n"); printf (" Use // at the start of the path to\n"); printf (" render relative to the blend file.\n"); @@ -232,6 +226,17 @@ static void print_help(void) printf (" -v\t\tPrint Blender version and exit\n"); printf (" --\t\tEnds option processing. Following arguments are \n"); printf (" \t\t passed unchanged. Access via Python's sys.argv\n"); + printf ("\nNote: Arguments must be seperated by white. eg:\n"); + printf (" \"blender -ba test.blend\"\n"); + printf (" ...will ignore the 'a'\n"); + printf (" \"blender -b test.blend -f8\"\n"); + printf (" ...will ignore 8 because there is no space between the -f and the frame value\n"); + printf ("Note: Arguments are executed in the order they are given. eg:\n"); + printf (" \"blender -b test.blend -f 1 -o /tmp\"\n"); + printf (" ...may not render to /tmp because '-f 1' renders before the output path is set\n"); + printf (" \"blender -b -o /tmp test.blend -f 1\"\n"); + printf (" ...may not render to /tmp because loading the blend file overwrites the output path that was set\n"); + printf (" \"blender -b test.blend -o /tmp -f 1\" works as expected.\n\n"); }