aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2017-03-20 12:41:22 -0500
committerRob Landley <rob@landley.net>2017-03-20 12:41:22 -0500
commitcb8e5ad6c5b9c79cce1a6baf10041f90cf491711 (patch)
tree7d22e62919b40e845380b32486e8a61991329715 /lib
parent2ba9c414e02197075e7e90ca077dda19fae75cda (diff)
downloadtoybox-cb8e5ad6c5b9c79cce1a6baf10041f90cf491711.tar.gz
Add TOYBOX_PEDANTIC_ARGS to check arguments when there are no arguments,
and make uptime use it.
Diffstat (limited to 'lib')
-rw-r--r--lib/toyflags.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/toyflags.h b/lib/toyflags.h
index e809901d..859cca2e 100644
--- a/lib/toyflags.h
+++ b/lib/toyflags.h
@@ -28,3 +28,9 @@
// Suppress default --help processing
#define TOYFLAG_NOHELP (1<<9)
+
+#if CFG_TOYBOX_PEDANTIC_ARGS
+#define NO_ARGS ">0"
+#else
+#define NO_ARGS 0
+#endif