Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix CLI to display error if no nodes specified for apply/install.

  • Loading branch information...
commit 94d1f73a0b1a4ef55c19628fa5881d12eac03da8 1 parent 5b3015a
@igal igal authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/pocketknife.rb
View
7 lib/pocketknife.rb
@@ -591,6 +591,13 @@ def self.cli(args)
nodes = arguments
+ if nodes.empty?
+ puts parser
+ puts
+ puts "ERROR: No nodes specified."
+ exit -1
+ end
+
begin
if options[:upload]
pocketknife.upload(nodes)
Please sign in to comment.
Something went wrong with that request. Please try again.