From c6188975d2da6c1696c4433f6fce8ae4c9a6ac38 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 12 Apr 2023 08:15:20 -0300 Subject: bin/: Make help string more consistent across several executables --- bin/e | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'bin/e') diff --git a/bin/e b/bin/e index b2778e1..3f8e93d 100755 --- a/bin/e +++ b/bin/e @@ -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 } -- cgit v1.2.3