[ruby] Require the command argument after -c

This commit is contained in:
Sami Samhuri 2022-01-22 15:42:03 -08:00
parent c01e3a5fe6
commit 94ca5e6024
No known key found for this signature in database
GPG key ID: 4B4195422742FC16

View file

@ -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