diff options
| author | EuAndreh <eu@euandre.org> | 2023-04-12 08:15:20 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2023-04-12 08:15:20 -0300 |
| commit | c6188975d2da6c1696c4433f6fce8ae4c9a6ac38 (patch) | |
| tree | 613545634bc999385d13ecb107d2cce113ba11c4 /bin/e | |
| parent | bin/: Add trailing semicolor to Perl heredocs (diff) | |
| download | dotfiles-c6188975d2da6c1696c4433f6fce8ae4c9a6ac38.tar.gz dotfiles-c6188975d2da6c1696c4433f6fce8ae4c9a6ac38.tar.xz | |
bin/: Make help string more consistent across several executables
Diffstat (limited to '')
| -rwxr-xr-x | bin/e | 15 | ||||
| -rwxr-xr-x | bin/email | 1 |
2 files changed, 11 insertions, 5 deletions
@@ -12,11 +12,18 @@ usage() { help() { cat <<-'EOF' + Options: - -h, --help + -h, --help show this message + + FILE path to the file + + Flexibly run a text editor, either directly or in a pipe. + + The editor used is either $VISUAL or $EDITOR, with a fallback to + vi in case any of those variables aren't defined. - Flexibly run a text editor, either directly on in a pipe. Examples: @@ -24,12 +31,10 @@ help() { $ e file.txt + Manipulate the content of a pipe midway: $ seq 10 | e | grep 5 - - The editor used is either $VISUAL or $EDITOR, with a fallback to - vi in case any of those variables aren't defined. EOF } @@ -12,6 +12,7 @@ usage() { help() { cat <<-'EOF' + Options: -s SUBJECT the email subject (default: "CLI email: No subject") -f FROM the addr to send from (default: "eu@euandre.org") |
