summaryrefslogtreecommitdiff
path: root/bin/tapicero
diff options
context:
space:
mode:
Diffstat (limited to 'bin/tapicero')
-rwxr-xr-xbin/tapicero2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/tapicero b/bin/tapicero
index 72f974b..42030d1 100755
--- a/bin/tapicero
+++ b/bin/tapicero
@@ -51,7 +51,7 @@ Tapicero::CONFIGS.concat ARGV.grep(/\.ya?ml$/)
# if flags have been set but an action is missing we assume
# tapicero should run in foreground.
-if ARGV.first.start_with?('--')
+if ARGV.first && ARGV.first.start_with?('--')
ARGV.unshift '--'
ARGV.unshift 'run'
end