aboutsummaryrefslogtreecommitdiff
path: root/include/usage.h
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2002-12-12 10:31:53 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2002-12-12 10:31:53 +0000
commit6d07432b2ff21f0d8537ba5fae3c402be9cb247a (patch)
tree21111cbc0beb96ef6bbb1dfdf51c52bcdd0bed52 /include/usage.h
parentb8dff0c2a2d2d53e6f0888568305dc17e990cddc (diff)
downloadbusybox-w32-6d07432b2ff21f0d8537ba5fae3c402be9cb247a.tar.gz
busybox-w32-6d07432b2ff21f0d8537ba5fae3c402be9cb247a.tar.bz2
busybox-w32-6d07432b2ff21f0d8537ba5fae3c402be9cb247a.zip
Support the o, f and p options, patch by Magnus M�rtensson
Diffstat (limited to 'include/usage.h')
-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" \