<feed xmlns='http://www.w3.org/2005/Atom'>
<title>jcarr/arg/example_test.go, branch v1.0.0</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<id>http://cgit.wit.com/jcarr/arg/atom?h=v1.0.0</id>
<link rel='self' href='http://cgit.wit.com/jcarr/arg/atom?h=v1.0.0'/>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/jcarr/arg/'/>
<updated>2017-03-04T02:13:12Z</updated>
<entry>
<title>Adding separate tag option</title>
<updated>2017-03-04T02:13:12Z</updated>
<author>
<name>Kenneth Shaw</name>
<email>kenshaw@gmail.com</email>
</author>
<published>2017-03-03T12:12:17Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/jcarr/arg/commit/?id=d4c2b35b2ef5b67c3ec6f904cea0dff806d51e2c'/>
<id>urn:sha1:d4c2b35b2ef5b67c3ec6f904cea0dff806d51e2c</id>
<content type='text'>
As outlined in #49, there is a need to mimic the behavior of other
applications by interweaving positional and non-positional parameters.

This change adds the 'separate' option that will force a arg of type
[]string to only read the next supplied value.

For example, when dealing with the following arg type:

var MyArgs struct {
    Pos []string `arg:"positional"`
    Separate []string `arg:"-s,separate"`
}

This commit will parse the following command line:

./app pos1 pos2 -s=separate1 -s=separate2 pos3 -s=separate3 pos4

Such that MyArgs.Pos will be [pos1 pos2 pos3 pos4] and MyArgs.Separate
will be [separate1 separate2 separate3].

Unit tests for the above have also been written and are included in this
commit, as well as the addition of a section to README.md and an example
func in example_test.go.

Fixes #49
</content>
</entry>
<entry>
<title>fix example function names</title>
<updated>2016-07-31T16:14:44Z</updated>
<author>
<name>Alex Flint</name>
<email>alex.flint@gmail.com</email>
</author>
<published>2016-07-31T16:14:44Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/jcarr/arg/commit/?id=5800b89ce9817f99b805776fe86046e2a26dc536'/>
<id>urn:sha1:5800b89ce9817f99b805776fe86046e2a26dc536</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix examples</title>
<updated>2015-11-01T21:36:14Z</updated>
<author>
<name>Alex Flint</name>
<email>alex.flint@gmail.com</email>
</author>
<published>2015-11-01T21:36:14Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/jcarr/arg/commit/?id=8b5a16fafeb0ed4591889a11a5c0c4a7e149bb1e'/>
<id>urn:sha1:8b5a16fafeb0ed4591889a11a5c0c4a7e149bb1e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add .travis.yml</title>
<updated>2015-11-01T21:24:35Z</updated>
<author>
<name>Alex Flint</name>
<email>alex.flint@gmail.com</email>
</author>
<published>2015-11-01T21:24:35Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/jcarr/arg/commit/?id=f042ab6386919a178d014ea8b3cd958e39148a7a'/>
<id>urn:sha1:f042ab6386919a178d014ea8b3cd958e39148a7a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>added runnable examples</title>
<updated>2015-11-01T19:34:22Z</updated>
<author>
<name>Alex Flint</name>
<email>alex.flint@gmail.com</email>
</author>
<published>2015-11-01T19:34:22Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/jcarr/arg/commit/?id=beede9329ae104d7db320406a63621b5bda03a36'/>
<id>urn:sha1:beede9329ae104d7db320406a63621b5bda03a36</id>
<content type='text'>
</content>
</entry>
</feed>
