Discover Packages
github.com/otm/gluaflag
package
module
Version:
v0.0.0-...-078088d
Opens a new window with list of versions in this module.
Published: Jan 13, 2016
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0 modules, 1 package
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
gluaflag
gluaflag is a flag module for gopher-lua
Expand ▾
Collapse ▴
Documentation
¶
UserDataTypeError is returned when it is not a flag userdata received
func Loader(L *lua.LState) int
Loader is used for preloading the module
func New(L *lua.LState, name string ) *lua.LUserData
New returns a new flagset userdata
func Parse(L *lua.LState, ud *lua.LUserData, args []string ) (*lua.LTable, error )
Parse the command line parameters
FlagSet is the background userdata component
ArgDefaults returns the flagsets help string for the possitional arguments
Compgen returns a string with possible options for the flag
FlagDefaults returns the flagsets help string for the flags
ShortUsage returns the usage string for a flagset
Usage returns the usage message for the flag set
Source Files
¶
Click to show internal directories.
Click to hide internal directories.