From 38497d5619f91c2804a545999a7920ba3e5c615f Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 3 Oct 2019 13:26:31 -0700 Subject: Overhaul/cleanup of command line argument parsing. Now properly handles startup commands in the order: bbstartup.sh, bb +cmd, echo +cmd | bb --- bb.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bb.h') diff --git a/bb.h b/bb.h index 2084f68..6f2a8f9 100644 --- a/bb.h +++ b/bb.h @@ -220,6 +220,9 @@ static const struct termios default_termios = { .c_cc[VTIME] = 0, }; +static const char *description_str = "bb - an itty bitty console TUI file browser\n"; +static const char *usage_str = "Usage: bb (-h/--help | -v/--version | -s | -d | -0 | +command | path)*\n"; + // Shell functions static const char *bbcmdfn = "bb() {\n" " if test $# -eq 0; then cat >> $BBCMD; return; fi\n" -- cgit v1.2.3