diff options
author | Florian Pritz <bluewind@xssn.at> | 2010-07-07 21:11:19 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xssn.at> | 2010-07-07 21:11:19 +0200 |
commit | c0b410483c5cb6ba80464e12177267f37bb82f31 (patch) | |
tree | ccf1cf8a3bb0a2b4f99362fd79b9573b6e2ca63c /fb | |
parent | 4e5ad948650486e3e1c9190c60f04234a3735813 (diff) | |
download | bin-c0b410483c5cb6ba80464e12177267f37bb82f31.tar.gz bin-c0b410483c5cb6ba80464e12177267f37bb82f31.tar.xz |
fb: use HEREDOC in help function
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'fb')
-rwxr-xr-x | fb | 23 |
1 files changed, 13 insertions, 10 deletions
@@ -40,16 +40,19 @@ read_stdin() { } help() { - echo "fb-client version $VERSION" - echo "usage: [cat |] $(basename "$0") [switches] [file(s)|ID(s)]" - echo " Upload/nopaste file(s)/stdin to paste.xinu.at and copy URL(s) to clipboard." - echo " ~/.netrc: machine paste.xinu.at password PASSWORD" - echo "" - echo "Switches:" - echo " -e EXTENSION extension for default highlighting (e.g. \"diff\")" - echo " -d delete the IDs" - echo " -g download the IDs and output on stdout (use with care!)" - echo " -h this help" + cat <<EOF +fb-client version $VERSION +usage: [cat |] `basename "$0"` [switches] [file(s)|ID(s)] + + Upload/nopaste file(s)/stdin to paste.xinu.at and copy URL(s) to clipboard. + ~/.netrc: machine paste.xinu.at password PASSWORD + + Switches: + -e EXTENSION extension for default highlighting (e.g. "diff") + -d delete the IDs + -g download the IDs and output on stdout (use with care!) + -h this help +EOF exit 0 } |