# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1372777414 -7200
# Node ID ab7e4845b6c1c09da510749e2cd4029aa1cc9fb1
# Parent  ded3938232f0044a9d09507a4a0a7d40a69cfb94
clix.publish_atom: The node is required, so print the help if it's missing

diff -r ded3938232f0 -r ab7e4845b6c1 clix/publish_atom.lua
--- a/clix/publish_atom.lua	Mon Apr 01 21:25:31 2013 +0200
+++ b/clix/publish_atom.lua	Tue Jul 02 17:03:34 2013 +0200
@@ -10,8 +10,7 @@
 		print("Publish an Atom entry to a pubsub node");
 		return;
 	end
-	--if (#arg == 0 or opts.help) then -- why?
-	if opts.help then
+	if opts.help or not opts.node then
 		print("clix publish_atom \\");
 		print("","--service=pubsub.shakespeare.lit \\");
 		print("","--node=princely_musings \\");