[BusyBox-cvs] busybox/include usage.h,1.128,1.129
Glenn McGrath
bug1 at busybox.net
Thu Dec 12 10:31:56 UTC 2002
Update of /var/cvs/busybox/include
In directory winder:/tmp/cvs-serv5674/include
Modified Files:
usage.h
Log Message:
Support the o, f and p options, patch by Magnus Mårtensson
Index: usage.h
===================================================================
RCS file: /var/cvs/busybox/include/usage.h,v
retrieving revision 1.128
retrieving revision 1.129
diff -u -d -r1.128 -r1.129
--- usage.h 10 Dec 2002 00:17:22 -0000 1.128
+++ usage.h 12 Dec 2002 10:31:52 -0000 1.129
@@ -245,7 +245,12 @@
#define dc_full_usage \
"This is a Tiny RPN calculator that understands the\n" \
"following operations: +, -, /, *, and, or, not, eor.\n" \
- "i.e., 'dc 2 2 add' -> 4, and 'dc 8 8 \\* 2 2 + /' -> 16"
+ "i.e., 'dc 2 2 add' -> 4, and 'dc 8 8 \\* 2 2 + /' -> 16" \
+ "p - Prints the value on the top of the stack, without altering the stack.\n" \
+ "f - Prints the entire contents of the stack without altering anything.\n" \
+ "o - Pops the value off the top of the stack and uses it to set the output radix.\n" \
+ " Only 10 and 16 are supported.\n"
+
#define dc_example_usage \
"$ dc 2 2 +\n" \
"4\n" \
More information about the busybox-cvs
mailing list