aboutsummaryrefslogtreecommitdiff
path: root/lib/args.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-07-10 14:12:44 -0500
committerRob Landley <rob@landley.net>2015-07-10 14:12:44 -0500
commit1e7b49e25990b6141ffa25da2cd4b6124d435f3d (patch)
tree80a2088c844736970dcd62d349da861934655c08 /lib/args.c
parentf380d139397dd3cd2bcc5df0330304ab1ceded1e (diff)
downloadtoybox-1e7b49e25990b6141ffa25da2cd4b6124d435f3d.tar.gz
Move comment about TOYBOX_DEBUG to start of file so it's more obvious.
Diffstat (limited to 'lib/args.c')
-rw-r--r--lib/args.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/args.c b/lib/args.c
index 592d33c8..d5fbb17d 100644
--- a/lib/args.c
+++ b/lib/args.c
@@ -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:
@@ -39,10 +45,6 @@
* 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