aboutsummaryrefslogtreecommitdiff
path: root/bb.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-10-03 13:26:31 -0700
committerBruce Hill <bruce@bruce-hill.com>2019-10-03 13:26:31 -0700
commit38497d5619f91c2804a545999a7920ba3e5c615f (patch)
tree0f4dac6a0ac10f882c7b449b6d22409e7d463f40 /bb.h
parente364995dcd2ce727d9af8eb826ae8681ec7d5b7e (diff)
Overhaul/cleanup of command line argument parsing. Now properly handles
startup commands in the order: bbstartup.sh, bb +cmd, echo +cmd | bb
Diffstat (limited to 'bb.h')
-rw-r--r--bb.h3
1 files changed, 3 insertions, 0 deletions
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"