summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2010-10-18 21:45:24 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2010-10-18 21:45:24 -0700
commit2f17e1a5dca4a1b03347baf20017bd187e1b688c (patch)
treed54aff14353a3cf1bbc3de78a8a079b5952378a1
parent3883f487538a81af59860251165a640bbc1f7db2 (diff)
downloadomptagger-2f17e1a5dca4a1b03347baf20017bd187e1b688c.tar.gz
omptagger-2f17e1a5dca4a1b03347baf20017bd187e1b688c.tar.xz
Simpler output when no action is specified.
-rwxr-xr-xomptagger7
1 files changed, 4 insertions, 3 deletions
diff --git a/omptagger b/omptagger
index 879c596..2ae0133 100755
--- a/omptagger
+++ b/omptagger
@@ -471,9 +471,10 @@ GetoptLong.new(
end
end
-Output.help_information if actions.empty?
-
-if ARGV.empty?
+if actions.empty?
+ puts 'No actions specified. See the --help option.'
+ exit
+elsif ARGV.empty?
puts 'No files specified.'
exit
end