Discover Packages
github.com/Starshine113/flagparser
package
module
Version:
v0.0.0-...-0b7a32b
Opens a new window with list of versions in this module.
Published: Nov 2, 2020
License: BSD-3-Clause
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Flag is a single flag, meant to be used in FlagParser
Bool returns a bool parser
Duration returns a duration parser
Int returns an int parser
String returns a string parser
type FlagParser struct {
Flags []*Flag
}
FlagParser parses the flags
NewFlagParser returns a new FlagParser instance
Parse parses the given slice of strings. Output is always given in the same order as NewFlagParser, followed by the remaining (non-captured) arguments as a slice of strings.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.