diff --git a/ruby/shell/cli.rb b/ruby/shell/cli.rb index 1cf74bd..ac549d0 100644 --- a/ruby/shell/cli.rb +++ b/ruby/shell/cli.rb @@ -35,6 +35,10 @@ module Shell case arg when '-c' options[:command] = args.shift + if options[:command].nil? + warn 'ERROR: expected string after -c' + exit 1 + end when '-v', '--verbose' options[:verbose] = true else