From 8c719938868b0f8b91ec403a55359bdb61571242 Mon Sep 17 00:00:00 2001 From: Justin Hawkins Date: Thu, 16 Feb 2017 22:09:02 +1030 Subject: [PATCH] Update documentation --- dau | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dau b/dau index 4926234..642afed 100755 --- a/dau +++ b/dau @@ -18,6 +18,7 @@ my $debug; my $now = time(); my $error_count = 0; my $error_max = 10; +my $version = '0.1'; GetOptions( "webhook=s" => \$webhook_url, @@ -36,7 +37,11 @@ if (! $webhook_url) { sub usage { my $error = shift || ""; - say "$0 --webhook url [--directory /some/path] [--username \"name to post as\"] [--watch n]"; + my $indent = " " x length($0); + say "dau $version - https://github.com/tardisx/discord-auto-upload\n"; + say "$0 --webhook [--directory ]"; + say "$indent [--username <\"custom username\">] [--watch ]\n"; + say "The current directory will be used if no directory is specified.\n"; say "error: $error" if $error; exit defined $error ? 1 : 0; }