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/copy | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'bin/copy') diff --git a/bin/copy b/bin/copy index 64e1e32..d7ffd61 100755 --- a/bin/copy +++ b/bin/copy @@ -4,7 +4,7 @@ set -eu usage() { cat <<-'EOF' Usage: - copy [-n] < STDIN + copy [-n] copy -h EOF } @@ -12,17 +12,25 @@ usage() { help() { cat <<-'EOF' + Options: -n remove newlines -h, --help show this message + + Copy data from STDIN to the X11 clipboard. + + Examples: Copy numbers to clipboard: - seq 10 | copy + + $ seq 10 | copy + Copy string without newline: - echo 'with automatic newline' | copy -n + + $ echo 'with automatic newline' | copy -n EOF } -- cgit v1.2.3