Changeset

145:6e05b25c2669

clix.watch_pep: Move invocation syntax out of short help So it doesn't clutter the command listing
author Kim Alvefur <zash@zash.se>
date Mon, 23 Nov 2020 23:52:31 +0100
parents 144:febc3992bee6
children 146:ae85457eca8e
files clix/watch_pep.lua
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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