summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Schlaeger <chris@linux.com>2016-05-20 21:08:13 +0200
committerChris Schlaeger <chris@linux.com>2016-05-20 21:08:13 +0200
commite0f94e3c2eca6c68c2a48fc5285c5618f36abd01 (patch)
treef6888b12c652a395d563b8ffdb91aab39d46ab8f
parent9d4a7ce30b3ea2d822aebc25f5abd1b3f6c966b7 (diff)
downloadpostrunner-e0f94e3c2eca6c68c2a48fc5285c5618f36abd01.zip
Fix: Print help text to stdout and not stderr.
-rw-r--r--lib/postrunner/Main.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/postrunner/Main.rb b/lib/postrunner/Main.rb
index 3d568a0..477efda 100644
--- a/lib/postrunner/Main.rb
+++ b/lib/postrunner/Main.rb
@@ -154,7 +154,7 @@ EOT
Log.level = Logger::DEBUG
end
opts.on('-h', '--help', 'Show this message') do
- $stderr.puts opts
+ $stdout.puts opts
return nil
end
opts.on('--version', 'Show version number') do
@@ -189,7 +189,7 @@ import [ <fit file> | <directory> ]
previous import is being used.
list
- List all FIT files stored in the data base.
+ List all FIT files stored in the database.
monthly [ <YYYY-MM-DD> ]