aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2002-12-12 10:31:53 +0000
committerbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2002-12-12 10:31:53 +0000
commit9049b5bc4bf40d464b2ac370bd753d210eded016 (patch)
tree21111cbc0beb96ef6bbb1dfdf51c52bcdd0bed52 /include
parentd58215a5d4b3c0c932a5da55beb05ffe71d9323b (diff)
downloadbusybox-w32-9049b5bc4bf40d464b2ac370bd753d210eded016.tar.gz
busybox-w32-9049b5bc4bf40d464b2ac370bd753d210eded016.tar.bz2
busybox-w32-9049b5bc4bf40d464b2ac370bd753d210eded016.zip
Support the o, f and p options, patch by Magnus M�rtensson
git-svn-id: svn://busybox.net/trunk/busybox@6195 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'include')
-rw-r--r--include/usage.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/usage.h b/include/usage.h
index 5b357a218..2ebf9ad43 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -245,7 +245,12 @@
245#define dc_full_usage \ 245#define dc_full_usage \
246 "This is a Tiny RPN calculator that understands the\n" \ 246 "This is a Tiny RPN calculator that understands the\n" \
247 "following operations: +, -, /, *, and, or, not, eor.\n" \ 247 "following operations: +, -, /, *, and, or, not, eor.\n" \
248 "i.e., 'dc 2 2 add' -> 4, and 'dc 8 8 \\* 2 2 + /' -> 16" 248 "i.e., 'dc 2 2 add' -> 4, and 'dc 8 8 \\* 2 2 + /' -> 16" \
249 "p - Prints the value on the top of the stack, without altering the stack.\n" \
250 "f - Prints the entire contents of the stack without altering anything.\n" \
251 "o - Pops the value off the top of the stack and uses it to set the output radix.\n" \
252 " Only 10 and 16 are supported.\n"
253
249#define dc_example_usage \ 254#define dc_example_usage \
250 "$ dc 2 2 +\n" \ 255 "$ dc 2 2 +\n" \
251 "4\n" \ 256 "4\n" \