diff options
author | Glenn L McGrath | 2002-12-12 10:31:53 +0000 |
---|---|---|
committer | Glenn L McGrath | 2002-12-12 10:31:53 +0000 |
commit | 6d07432b2ff21f0d8537ba5fae3c402be9cb247a (patch) | |
tree | 21111cbc0beb96ef6bbb1dfdf51c52bcdd0bed52 /include | |
parent | b8dff0c2a2d2d53e6f0888568305dc17e990cddc (diff) | |
download | busybox-6d07432b2ff21f0d8537ba5fae3c402be9cb247a.zip busybox-6d07432b2ff21f0d8537ba5fae3c402be9cb247a.tar.gz |
Support the o, f and p options, patch by Magnus M�rtensson
Diffstat (limited to 'include')
-rw-r--r-- | include/usage.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/usage.h b/include/usage.h index 5b357a2..2ebf9ad 100644 --- a/include/usage.h +++ b/include/usage.h @@ -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" \ |