clix.publish_atom: The node is required, so print the help if it's missing

Tue, 02 Jul 2013 17:03:34 +0200

author
Kim Alvefur <zash@zash.se>
date
Tue, 02 Jul 2013 17:03:34 +0200
changeset 111
ab7e4845b6c1
parent 110
ded3938232f0
child 112
9c4b996bdfd8

clix.publish_atom: The node is required, so print the help if it's missing

clix/publish_atom.lua file | annotate | diff | comparison | revisions
--- 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 \\");

mercurial