From 269b83bd9a3b0aecf92bb5f0e7aa79f5178f3e9e Mon Sep 17 00:00:00 2001 From: Eric Anderson Date: Fri, 5 Jul 2013 16:17:18 -0700 Subject: Use a heredoc in usage() instead of many echos --- hib-dlagent | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/hib-dlagent b/hib-dlagent index 899ed56..1dfd64b 100755 --- a/hib-dlagent +++ b/hib-dlagent @@ -26,27 +26,27 @@ discover_url() { } usage() { - echo "hib-dlagent $VERSION" - echo "Tool to download Humble Indie Bundle binaries by file name" - echo - echo "Usage: $0 [OPTIONS] FILE" - echo "Options:" - echo " -d Directory for searching and saving files. The normal save" - echo " location is still used, but will be a symbolic link" - echo " -h This help" - echo " -k Search key's files. Use multiple times for multiple keys" - echo " -o Name to use when saving file" - echo " -p Use pass to login. If specified multiple times, the last is" - echo " used" - echo " -s Print URL to stdout instead of downloading. Incompatible" - echo " with -d" - echo " -u Use user to login. Search account's files. If specified" - echo " multiple times, the last is used" - echo - echo "If you specify -u, then all of that account's bundles are searched. If" - echo "a key is associated with a HIB account then you must use -u/-p, since" - echo "that key only works when logged into that account. It is not helpful to" - echo "specify -k for bundles associated with an account." + cat < Directory for searching and saving files. The normal save location + is still used, but will be a symbolic link + -h This help + -k Search key's files. Use multiple times for multiple keys + -o Name to use when saving file + -p Use pass to login. If specified multiple times, the last is used + -s Print URL to stdout instead of downloading. Incompatible with -d + -u Use user to login. Search account's files. If specified multiple + times, the last is used + +If you specify -u, then all of that account's bundles are searched. If a key is +associated with a HIB account then you must use -u/-p, since that key only works +when logged into that account. It is not helpful to specify -k for bundles +associated with an account. +EOF } handle_download() { -- cgit v1.2.3-54-g00ecf