lib/gitlab/cli.rb in gitlab-3.2.0 vs lib/gitlab/cli.rb in gitlab-3.3.0
- old
+ new
@@ -36,9 +36,15 @@
command_args = args[0..-2]
else
command_args = args
end
+ begin
+ yaml_load_and_symbolize_hash!(command_args)
+ rescue
+ exit 1
+ end
+
confirm_command(cmd)
data = gitlab_helper(cmd, command_args) { exit(1) }
output_table(cmd, args, data)
end