Move comment about TOYBOX_DEBUG to start of file so it's more obvious.
authorRob Landley <rob@landley.net>
Fri, 10 Jul 2015 19:12:44 +0000 (14:12 -0500)
committerRob Landley <rob@landley.net>
Fri, 10 Jul 2015 19:12:44 +0000 (14:12 -0500)
lib/args.c

index 592d33c..d5fbb17 100644 (file)
@@ -3,6 +3,12 @@
  * Copyright 2006 Rob Landley <rob@landley.net>
  */
 
+// NOTE: If option parsing segfaults, switch on TOYBOX_DEBUG in menuconfig.
+
+// Enabling TOYBOX_DEBUG in .config adds syntax checks to option string parsing
+// which aren't needed in the final code (your option string is hardwired and
+// should be correct when you ship), but are useful for development.
+
 #include "toys.h"
 
 // Design goals:
  *       this[1]="fruit" (argument to -b)
  */
 
-// Enabling TOYBOX_DEBUG in .config adds syntax checks to option string parsing
-// which aren't needed in the final code (your option string is hardwired and
-// should be correct when you ship), but are useful for development.
-
 // What you can put in a get_opt string:
 //   Any otherwise unused character (all letters, unprefixed numbers) specify
 //   an option that sets a flag. The bit value is the same as the binary digit