[git commit] bc: tweak help text

Denys Vlasenko vda.linux at googlemail.com
Wed Dec 5 14:43:35 UTC 2018


commit: https://git.busybox.net/busybox/commit/?id=9721f6c8b0b5a22313fb546af5959d69ac6b59ef
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

-v is supported but not shown

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 miscutils/bc.c | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/miscutils/bc.c b/miscutils/bc.c
index 78c64355b..4257511f0 100644
--- a/miscutils/bc.c
+++ b/miscutils/bc.c
@@ -114,12 +114,19 @@
 //kbuild:lib-$(CONFIG_BC) += bc.o
 //kbuild:lib-$(CONFIG_DC) += bc.o
 
+//See www.gnu.org/software/bc/manual/bc.html
 //usage:#define bc_trivial_usage
-//usage:       "EXPRESSION...\n"
-//usage:       "function_definition\n"
+//usage:       "[-sqli] FILE..."
 //usage:
-//usage:#define bc_full_usage "\n\n"
-//usage:       "See www.gnu.org/software/bc/manual/bc.html\n"
+//usage:#define bc_full_usage "\n"
+//usage:     "\nArbitrary precision calculator"
+//usage:     "\n"
+//usage:     "\n	-i	Interactive"
+//usage:     "\n	-l	Load standard math library"
+//usage:     "\n	-s	Be POSIX compatible"
+//usage:     "\n	-q	Quiet"
+//usage:     "\n	-w	Warn if extensions are used"
+///////:     "\n	-v	Version"
 //usage:
 //usage:#define bc_example_usage
 //usage:       "3 + 4.129\n"


More information about the busybox-cvs mailing list