[Bf-blender-cvs] [7d443ed] master: Docs: Show 'Other Options' last in --help

Campbell Barton noreply at git.blender.org
Sun Dec 4 11:39:06 CET 2016


Commit: 7d443ed86df8ad5cc1bed831a1333f5b550c3f01
Author: Campbell Barton
Date:   Sun Dec 4 21:55:17 2016 +1100
Branches: master
https://developer.blender.org/rB7d443ed86df8ad5cc1bed831a1333f5b550c3f01

Docs: Show 'Other Options' last in --help

Own error when changing order,
moving experimental features last made some sense,
but causes them to be listed twice.

Reorder and comment to avoid it happening again.

===================================================================

M	source/creator/creator_args.c

===================================================================

diff --git a/source/creator/creator_args.c b/source/creator/creator_args.c
index c3c76a0..ab3410d 100644
--- a/source/creator/creator_args.c
+++ b/source/creator/creator_args.c
@@ -585,15 +585,15 @@ static int arg_handle_print_help(int UNUSED(argc), const char **UNUSED(argv), vo
 	BLI_argsPrintArgDoc(ba, "--");
 
 	printf("\n");
-	printf("Other Options:\n");
-	BLI_argsPrintOtherDoc(ba);
-
-	/* keep last args */
-	printf("\n");
 	printf("Experimental Features:\n");
 	BLI_argsPrintArgDoc(ba, "--enable-new-depsgraph");
 	BLI_argsPrintArgDoc(ba, "--enable-new-basic-shader-glsl");
 
+	/* Other options _must_ be last (anything not handled will show here) */
+	printf("\n");
+	printf("Other Options:\n");
+	BLI_argsPrintOtherDoc(ba);
+
 	printf("\n");
 	printf("Argument Parsing:\n");
 	printf("\tArguments must be separated by white space, eg:\n");




More information about the Bf-blender-cvs mailing list