Documentation ¶
Overview ¶
Package osargs provides functions to parse command line arguments.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Arguments ¶
Arguments holds command line arguments.
func New ¶
func New() *Arguments
New creates and returns a new instance of Arguments. Arguments have all command line arguments except the first one, which is the program name.
func (*Arguments) ParsePairs ¶
ParsePairs returns the values of available flags in command line. The values are the ones that are separated from flags by the delimiter.
func (*Arguments) UnparsedArgs ¶
UnparsedArgs returns unparsed arguments.
type Delimiter ¶
Delimiter is the separator between flag and value in command line argument.
func NewDelimiter ¶
NewDelimiter creates and returns a new instance of Delimiter.
Click to show internal directories.
Click to hide internal directories.