lib/mortar/command/illustrate.rb in mortar-0.7.4 vs lib/mortar/command/illustrate.rb in mortar-0.7.5

- old
+ new

@@ -20,11 +20,11 @@ # class Mortar::Command::Illustrate < Mortar::Command::Base include Mortar::Git - # illustrate [PIGSCRIPT] [ALIAS] + # illustrate PIGSCRIPT [ALIAS] # # Illustrate the effects and output of a pigscript. # # -s, --skippruning # Don't try to reduce the illustrate results to the smallest size possible. # -p, --parameter NAME=VALUE # Set a pig parameter value in your script. @@ -41,12 +41,11 @@ skip_pruning = options[:skippruning] ||= false validate_arguments! pigscript = validate_script!(pigscript_name) - # TODO: When illustrating without alias works, remove the `&& alias_name` to re-enable the feature on CLI - unless pigscript_name && alias_name - error("Usage: mortar illustrate PIGSCRIPT ALIAS\nMust specify PIGSCRIPT and ALIAS.") + unless pigscript_name + error("Usage: mortar illustrate PIGSCRIPT [ALIAS]\nMust specify PIGSCRIPT.") end if pigscript.is_a? Mortar::Project::ControlScript error "Currently Mortar does not support illustrating control scripts" end