From: Florian Forster Date: Fri, 25 May 2007 17:47:04 +0000 (+0200) Subject: contrib/migrate-3-4.px: Added usage information. X-Git-Tag: collectd-4.0.0~10 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f2bc0909c062e64518c1e7f0514363c007c6a9d8;p=collectd.git contrib/migrate-3-4.px: Added usage information. --- diff --git a/contrib/migrate-3-4.px b/contrib/migrate-3-4.px index cbbc179b..31abae4b 100755 --- a/contrib/migrate-3-4.px +++ b/contrib/migrate-3-4.px @@ -125,7 +125,7 @@ our %TypeRename = GetOptions ("indir|i=s" => \$InDir, "outdir|o=s" => \$OutDir, - "hostname=s" => \$Hostname) or exit (1); + "hostname=s" => \$Hostname) or exit_usage (); die "No such directory: $InDir" if (!-d $InDir); @@ -374,3 +374,11 @@ sub special_disk $dest_filename = get_filename ($dest); print "./extractDS.px -i '$InDir/$orig_filename' -s 'rtime' -s 'wtime' -o '$OutDir/$dest_filename' -d 'read' -d 'write'\n"; } + +sub exit_usage +{ + print <