comparison Libs/AceConsole-3.0/AceConsole-3.0.lua @ 106:e635cd648e01 v49

7.2 update
author yellowfive
date Tue, 28 Mar 2017 16:10:00 -0700
parents 01b63b8ed811
children
comparison
equal deleted inserted replaced
105:3ce266c86bd3 106:e635cd648e01
7 -- and can be accessed directly, without having to explicitly call AceConsole itself.\\ 7 -- and can be accessed directly, without having to explicitly call AceConsole itself.\\
8 -- It is recommended to embed AceConsole, otherwise you'll have to specify a custom `self` on all calls you 8 -- It is recommended to embed AceConsole, otherwise you'll have to specify a custom `self` on all calls you
9 -- make into AceConsole. 9 -- make into AceConsole.
10 -- @class file 10 -- @class file
11 -- @name AceConsole-3.0 11 -- @name AceConsole-3.0
12 -- @release $Id: AceConsole-3.0.lua 878 2009-11-02 18:51:58Z nevcairiel $ 12 -- @release $Id: AceConsole-3.0.lua 1143 2016-07-11 08:52:03Z nevcairiel $
13 local MAJOR,MINOR = "AceConsole-3.0", 7 13 local MAJOR,MINOR = "AceConsole-3.0", 7
14 14
15 local AceConsole, oldminor = LibStub:NewLibrary(MAJOR, MINOR) 15 local AceConsole, oldminor = LibStub:NewLibrary(MAJOR, MINOR)
16 16
17 if not AceConsole then return end -- No upgrade needed 17 if not AceConsole then return end -- No upgrade needed
134 end 134 end
135 135
136 136
137 --- Retreive one or more space-separated arguments from a string. 137 --- Retreive one or more space-separated arguments from a string.
138 -- Treats quoted strings and itemlinks as non-spaced. 138 -- Treats quoted strings and itemlinks as non-spaced.
139 -- @param string The raw argument string 139 -- @param str The raw argument string
140 -- @param numargs How many arguments to get (default 1) 140 -- @param numargs How many arguments to get (default 1)
141 -- @param startpos Where in the string to start scanning (default 1) 141 -- @param startpos Where in the string to start scanning (default 1)
142 -- @return Returns arg1, arg2, ..., nextposition\\ 142 -- @return Returns arg1, arg2, ..., nextposition\\
143 -- Missing arguments will be returned as nils. 'nextposition' is returned as 1e9 at the end of the string. 143 -- Missing arguments will be returned as nils. 'nextposition' is returned as 1e9 at the end of the string.
144 function AceConsole:GetArgs(str, numargs, startpos) 144 function AceConsole:GetArgs(str, numargs, startpos)