summaryrefslogtreecommitdiffstats
path: root/fb
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2010-07-07 21:11:19 +0200
committerFlorian Pritz <bluewind@xssn.at>2010-07-07 21:11:19 +0200
commitc0b410483c5cb6ba80464e12177267f37bb82f31 (patch)
treeccf1cf8a3bb0a2b4f99362fd79b9573b6e2ca63c /fb
parent4e5ad948650486e3e1c9190c60f04234a3735813 (diff)
downloadbin-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-xfb23
1 files changed, 13 insertions, 10 deletions
diff --git a/fb b/fb
index cf21b5b..f98ee07 100755
--- a/fb
+++ b/fb
@@ -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
}