lib/vindetta/cli.rb in vindetta-0.23.0 vs lib/vindetta/cli.rb in vindetta-0.24.0
- old
+ new
@@ -11,10 +11,10 @@
program_desc "Vehicle Identification Number (VIN) CLI"
version Vindetta::VERSION
desc "Validates a VIN"
-
+
command %i[validate v] do |c|
c.action do |_global, _options, args|
vin = args.first
exit_now!(I18n.t("required"), 1) if vin.nil?