clix.watch_pep: Move invocation syntax out of short help

Mon, 23 Nov 2020 23:52:31 +0100

author
Kim Alvefur <zash@zash.se>
date
Mon, 23 Nov 2020 23:52:31 +0100
changeset 145
6e05b25c2669
parent 144
febc3992bee6
child 146
ae85457eca8e

clix.watch_pep: Move invocation syntax out of short help

So it doesn't clutter the command listing

clix/watch_pep.lua file | annotate | diff | comparison | revisions
--- a/clix/watch_pep.lua	Mon Nov 16 17:18:39 2020 +0100
+++ b/clix/watch_pep.lua	Mon Nov 23 23:52:31 2020 +0100
@@ -15,8 +15,11 @@
 };
 
 return function (opts, arg)
-	if opts.short_help or not arg[1] then
+	if opts.short_help then
 		print("Watches PEP notifications from all contacts")
+		return;
+	end
+	if opts.help or not arg[1] then
 		print("clix watch_pep [--noempty] PEP-NODE+")
 		return;
 	end

mercurial