Support --style options too

Sat, 08 May 2010 19:28:35 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sat, 08 May 2010 19:28:35 +0100
changeset 4
0677d0506878
parent 3
fb9987d6df5d
child 5
05ee9f5fcefc

Support --style options too

xmpp-fingerprint.lua file | annotate | diff | comparison | revisions
--- a/xmpp-fingerprint.lua	Sat May 08 19:28:19 2010 +0100
+++ b/xmpp-fingerprint.lua	Sat May 08 19:28:35 2010 +0100
@@ -56,7 +56,7 @@
 
 -- Process flags --
 local function process_args(arg)
-	local f = arg[1] and arg[1]:match("^%-(%S+)");
+	local f = arg[1] and arg[1]:match("^%-%-?(%S+)");
 	if f then
 		table.remove(arg, 1);
 		if flags[f] then

mercurial