Update LibGetOpt to v0.13

Mere [07-13-13 - 09:32]
Update LibGetOpt to v0.13
Filename
Libs/LibGetOpt/ChangeLog.txt
Libs/LibGetOpt/LibGetOpt.lua
Libs/LibGetOpt/RiftAddon.toc
Libs/LibGetOpt/printf/RiftAddon.toc
diff --git a/Libs/LibGetOpt/ChangeLog.txt b/Libs/LibGetOpt/ChangeLog.txt
index 9d6b831..3aa6e0a 100644
--- a/Libs/LibGetOpt/ChangeLog.txt
+++ b/Libs/LibGetOpt/ChangeLog.txt
@@ -1,3 +1,7 @@
+2013/07/12:
+	* ToC update
+	* New event model (2.3 and later)
+
 2013/02/24:
 	* Add access to unquoted command lines. (Mostly needed for
 	  SlashPrint.)
diff --git a/Libs/LibGetOpt/LibGetOpt.lua b/Libs/LibGetOpt/LibGetOpt.lua
index c3e58e2..26bd73d 100644
--- a/Libs/LibGetOpt/LibGetOpt.lua
+++ b/Libs/LibGetOpt/LibGetOpt.lua
@@ -43,7 +43,7 @@ GetOpt.sampletable = {
 }

 GetOpt.DebugLevel = 0
-GetOpt.Version = "0.12-130224-21:53:31"
+GetOpt.Version = "0.13-130712-20:34:14"
 GetOpt.printf = Library.printf.printf

 function GetOpt.Debug(level, text, ...)
@@ -395,7 +395,6 @@ function GetOpt.getopt(options, args)
       table.insert(extra, arg)
       extra_text = arg
       if orig_args and #full_extra_text == 0 then
-	dump(args_to_idx)
         local text_offset = args_to_idx[i]
 	full_extra_text = orig_args:sub(text_offset)
       end
@@ -464,16 +463,16 @@ end

 local slashgetopt = Command.Slash.Register("getopt")
 if (slashgetopt) then
-  table.insert(slashgetopt, { GetOpt.slashcommand, "LibGetOpt", "/getopt" })
+  Command.Event.Attach(slashgetopt, GetOpt.slashcommand, "/getopt")
 end

 function GetOpt.makeslash(opts, addonname, name, func)
   local newcommand = Command.Slash.Register(name)
   if newcommand then
-    local dummy = function(args)
+    local dummy = function(event, args)
       func(GetOpt.getopt(opts, args))
     end
-    table.insert(newcommand, { dummy, addonname, string.format("/%s", name) })
+    Command.Event.Attach(newcommand, dummy, addonname .. "_slash_command")
     return true
   else
     GetOpt.printf("Couldn't register '%s'.", name)
diff --git a/Libs/LibGetOpt/RiftAddon.toc b/Libs/LibGetOpt/RiftAddon.toc
index 6159f8b..848956c 100644
--- a/Libs/LibGetOpt/RiftAddon.toc
+++ b/Libs/LibGetOpt/RiftAddon.toc
@@ -1,6 +1,6 @@
 Identifier = "LibGetOpt"

-Version = "0.12-130224-21:53:31"
+Version = "0.13-130712-20:34:14"

 Email = "riftaddons@seebs.net"

@@ -24,5 +24,5 @@ RunOnStartup = {
   "LibGetOpt.lua"
 }

-Environment = { "1.11" }
+Environment = { "2.3" }

diff --git a/Libs/LibGetOpt/printf/RiftAddon.toc b/Libs/LibGetOpt/printf/RiftAddon.toc
index 81366c9..70838ea 100644
--- a/Libs/LibGetOpt/printf/RiftAddon.toc
+++ b/Libs/LibGetOpt/printf/RiftAddon.toc
@@ -1,6 +1,6 @@
 Identifier = "printf"

-Version = "0.2-130203-18:25:25"
+Version = "0.2-130712-20:34:14"

 Email = "riftaddons@seebs.net"