diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-10-03 13:26:31 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-10-03 13:26:31 -0700 |
| commit | 38497d5619f91c2804a545999a7920ba3e5c615f (patch) | |
| tree | 0f4dac6a0ac10f882c7b449b6d22409e7d463f40 /bb.h | |
| parent | e364995dcd2ce727d9af8eb826ae8681ec7d5b7e (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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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" |
