lib/right_chimp/Chimp.rb in right_chimp-1.1.2 vs lib/right_chimp/Chimp.rb in right_chimp-1.1.3
- old
+ new
@@ -340,9 +340,14 @@
#
# Check for any invalid combinations of command line options
#
def check_option_validity
+ if @hold && !@array_names.empty?
+ puts "ERROR: Holding of array objects is not yet supported"
+ exit 1
+ end
+
if @tags.empty? and @array_names.empty? and @deployment_names.empty? and not @chimpd_wait_until_done
puts "ERROR: Please select the objects to operate upon."
help
exit 1
end