In an app with nested sub-commands, it may be necessary to look at the intermediate command's args. Currently, this is only achievable via GetArgvList method, which is unnecessarily complicated if one only wants to look at the args of the immediate sub-command parent.
An addition of ArgvAt(pos int) method to Context object, with the obvious semantics of return ctx.argvList[pos], (or something similar in intent) will be most welcome.
In an app with nested sub-commands, it may be necessary to look at the intermediate command's args. Currently, this is only achievable via
GetArgvList
method, which is unnecessarily complicated if one only wants to look at the args of the immediate sub-command parent.An addition of
ArgvAt(pos int)
method toContext
object, with the obvious semantics ofreturn ctx.argvList[pos]
, (or something similar in intent) will be most welcome.