Putting the exit where it belongs

pull/4/head
Braydon Kains 5 years ago
parent 320c435ec2
commit d48d331e81

@ -37,6 +37,8 @@ OptionParser.parse do |parser|
else
puts "No process found by the name %s" % p_name
end
exit
end
parser.on "-k PORT", "--kill-port=PORT", "Kill process on port" do |port|

@ -26,7 +26,7 @@ describe LtnpOperator do
end
it "should not find record when process doesn't exist" do
sut.search_p_name(existing_p_name).nil?.should be_false
sut.search_p_name(nonsense_p_name).nil?.should be_true
end
end
end

Loading…
Cancel
Save