Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Oct 18, 2015
Commits on Oct 10, 2015
  1. Implement support for limiting argument values to a certain set

    This adds a choice:”value” tag that can be specified multiple times
    and limits the valid values of an option to a specific set.
    Fixes #147.
Commits on Jun 28, 2015
Commits on Mar 31, 2015
  1. @mvo5
Commits on Jan 25, 2015
  1. Use positional-arg-name tag

    Gabriel Gilder committed
  2. Fix docs typo

    Gabriel Gilder committed
Commits on Sep 16, 2014
  1. Implement verbose completion

    Add tests for verbose completion and document it
  2. @zimmski
Commits on Sep 15, 2014
Commits on Sep 11, 2014
  1. @zimmski
Commits on Aug 17, 2014
  1. @melor

    Optional default values from environment variables

    melor committed
    Tags `env:"VARIABLE_NAME"` and `env-delim:"DELIM_STRING"` can
    be optionally specified to get the option default value from
    the corresponding environment variable.
    The delimiter, if one is defined, is used to split the value
    to multiple strings, making it possible to define default values
    for both slices and maps thru the environment.
Commits on Jul 26, 2014
  1. @sqs

    Support completion of positional "rest" (slice/array) args

    sqs committed
    Given a command with a positional "rest" arg (`Filename []Filename`
    	AddMultiCommand struct {
    		Positional struct {
    			Filename []Filename
    		} `positional-args:"yes"`
    	} `command:"add-multi"`
    This PR implements completion for the rest arg using the element
    type of the "rest" arg value (here, `Filename`).
    Adds the test AddMultiCommand to TestCompletion to test the new
    Adds a sentence describing this new behavior in the flags.go package
    documentation (previously, the docs did not clearly define whether
    this behavior was present).
Commits on Jun 23, 2014
  1. Improved documentation

Commits on Jun 21, 2014
Commits on May 14, 2014
  1. @zimmski
Commits on May 13, 2014
  1. @zimmski

    implement group namespaces

    zimmski committed
Commits on May 3, 2014
  1. Added documentation for 'alias' tag

    Jesse van den Kieboom committed
Commits on Mar 26, 2014
  1. @zimmski
Commits on Mar 13, 2014
  1. Merge pull request #61 from zimmski/undocumented-fields

    Some field tags are undocumented
Commits on Mar 12, 2014
  1. @zimmski

    align field group descriptions

    zimmski committed
  2. @zimmski
  3. @zimmski
  4. @zimmski

    correct grammar errors and typos

    zimmski committed
  5. @zimmski
  6. @zimmski
  7. @zimmski

    group field tags

    zimmski committed
Commits on Jan 10, 2014
  1. Allow optional subcommands

Commits on Nov 22, 2013
Commits on Nov 21, 2013
  1. Rename Command to Commander in documentation

    Jesse van den Kieboom committed
Commits on Nov 17, 2013
  1. @davecgh

    Improve support for Windows-style options.

    davecgh committed with davecgh
    This commit expands upon the previous commit to add support for
    Windows-style options.
    At the request of the go-flags author, the code has been modified to
    use build constraints for windows-specific functionality instead of
    selecting at runtime.
    As noted by @jessvdk, Windows typically uses a colon for the option name
    and argument delimiter.  This code adds support for both styles, but
    doesn't allow the two to be mixed.  That is to say /foo:bar and --foo=bar
    are acceptable, but /foo=bar and --foo:bar are not.
Commits on Nov 16, 2013
  1. @davecgh

    Support Windows-style options.

    davecgh committed
    This commit adds support for front slash to be used for options on Windows.
    Front slashes are the standard style for Windows CLI programs.  Also,
    Windows doesn't typically differentiate between short and long options
    because a front slash works for both.  Finally, Windows CLI applications
    typically support /? for help.
    So given the above, this commit makes the following modifications only
    when running on Windows:
    - Adds support for Windows-style options with short names (/v)
    - Adds support for Windows-style options with long names (/verbose)
    - Adds an additional Windows-style help entry (/?)
    - Modifies the help (usage) display to show Windows-style options
      (example: /v for short names, /verbose for long names)
    - Note that in all cases the unix style -, and -- still work as well
      on Windows for consistency among operating systems.
    Finally, the documentation has been updated to reflect the new
Commits on Oct 31, 2013
  1. Added Marshaler/Unmarshaler interfaces

    This adds support for customised marshalling and
    unmarshalling of user defined types as options.
    Fixes #32.
Something went wrong with that request. Please try again.