| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2015-10-13 | And test go 1.5 while we are at it | Eric Paris | |
| 2015-10-13 | Use encoding/csv to parse string slices | Eric Paris | |
| There was no way to escape or use a , in a string slice so use the encoding/csv library, rather than string.split() and let golang take care of the encoding issues. | |||
| 2015-09-23 | Merge pull request #58 from eparis/code-cleanliness | Eric Paris | |
| Add more CI checks forcing code cleanliness | |||
| 2015-09-23 | Add more CI checks forcing code cleanliness | Eric Paris | |
| 2015-09-17 | Merge pull request #56 from eparis/len-at-dash | Eric Paris | |
| Store the length of Args when a -- is found in commandline | |||
| 2015-09-16 | Store the length of Args when a -- is found in commandline | Eric Paris | |
| This allows a program to know what args came before the -- and what args came after. | |||
| 2015-09-08 | Merge pull request #53 from sdomino/feature/private-flags | Eric Paris | |
| private flags | |||
| 2015-09-07 | adding a private field to flags, and a function for marking flags as private | Steve Domino | |
| removing some c/p left-overs from the MarkPrivate function, and updating the comment slightly changed field from Private to Hidden. Added documentation w/example to README.md. Added testing to confirm hidden flags updating test message | |||
| 2015-08-20 | Merge pull request #52 from JanetKuo/shorthand-deprecator | Eric Paris | |
| Add shorthand deprecator | |||
| 2015-08-20 | Add shorthand deprecator | Janet Kuo | |
| 2015-08-16 | Merge pull request #51 from eparis/golangflag-defval | Eric Paris | |
| Do not trust golang flag's DefValue | |||
| 2015-08-16 | Do not trust golang flag's DefValue | Eric Paris | |
| Apparently it is wrong :-(. Use the current value instead. It is at least the default at the moment that pflag learned about the flag. | |||
| 2015-08-16 | Merge pull request #49 from eparis/golangflags | Eric Paris | |
| Support merging golang flags into pflags | |||
| 2015-08-16 | Add functions to support golang flags in pflags | Eric Paris | |
| They aren't "perfect". spf13/pflag chose to use an explicit `Type` in the value. golang has nothing of the sort and has a rather crazy IsBoolFlag() bit of nonsense for the one case that really makes sense to have the explicit `Type`. Probably because adding interfaces really screws people up. So supporting golang flags in pflags isn't super super simple, we need to figure out how to handle our `Type` given only the information available in a golang flag. This does it as best we can with `reflect`. | |||
| 2015-08-16 | Merge pull request #48 from eparis/addFlagSet | Eric Paris | |
| New AddFlagSet function on FlagSet | |||
| 2015-08-15 | New AddFlagSet function on FlagSet | Eric Paris | |
| This function allows one to create a different FlagSets and then easily merge them together. | |||
| 2015-08-15 | Merge pull request #45 from eparis/use-type | Eric Paris | |
| Use Type() instead of internal .(*stringValue) | |||
| 2015-08-15 | Use Type() instead of internal .(*stringValue) | Eric Paris | |
| This makes things easier to read/understand and it also means that users who declare their own flags and call them "string" will get quotes as well. | |||
| 2015-08-15 | Merge pull request #46 from eparis/goreportcard | Eric Paris | |
| Fix up minor things found by goreportcard.com | |||
| 2015-08-15 | Merge pull request #47 from eparis/usageMerge | Eric Paris | |
| Reduce code duplication in PrintDefaults/FlagUsages | |||
| 2015-08-15 | Reduce code duplication in PrintDefaults/FlagUsages | Eric Paris | |
| They both did the same thing. So use one in the other. | |||
| 2015-08-15 | Fix up minor things found by goreportcard.com | Eric Paris | |
| 2015-08-15 | Merge pull request #44 from eparis/optional-flag-display | Eric Paris | |
| Display which flags are optional flags in usageFunc | |||
| 2015-08-14 | Annotate optional flags in usageFunc | Eric Paris | |
| 2015-08-14 | Merge pull request #43 from technoweenie/typo-anxiety | Eric Paris | |
| Fix a couple typos. | |||
| 2015-08-14 | typo | Rick Olson | |
| 2015-08-12 | Merge pull request #41 from eparis/fix-slice-defaults | Eric Paris | |
| Do not append to default values in {String,Int}Slice | |||
| 2015-08-12 | Merge pull request #42 from eparis/ogier-pick | Eric Paris | |
| Fix typo in bool_test.go | |||
| 2015-08-12 | Fix typo in bool_test.go | ssgelm | |
| (cherry picked from commit faf06f062514fcb3a92c325d15bf312d1be84f94) | |||
| 2015-08-12 | Do not append to default values in {String,Int}Slice | Eric Paris | |
| I added the ability to do: `-s=bob -s=john` and get `[]string{"bob", "john"}` But if a default value was set to say `[]string{"eric"}` the above operation was mistakenly resulting in: `[]string{"eric", "bob", "john"} which was obviously not what was intended. This is fixed by tracking if a value was parsed and overwriting the default on the first time -s is found, but we append the 2+ time. | |||
| 2015-08-07 | Merge pull request #39 from eparis/changed-helper | Eric Paris | |
| More tests for Changed | |||
| 2015-08-07 | More tests for Changed | Eric Paris | |
| 2015-08-07 | Merge pull request #38 from eparis/changed-helper | Eric Paris | |
| New helper to easily see if a flag has been set | |||
| 2015-08-07 | New helper to easily see if a flag has been set | Eric Paris | |
| A lot easier than having to do it in the user over and over and over. | |||
| 2015-08-05 | Merge pull request #37 from eparis/ip-tests | Eric Paris | |
| Two New Flag Types - IPNet and Count | |||
| 2015-08-05 | New counter flag type | Eric Paris | |
| ``` -vvv ``` Will give a value of 3 ``` -v=4 -v ``` Will give a value of 5 | |||
| 2015-08-05 | Add new net.IPNet flag type | Eric Paris | |
| 2015-08-05 | Add _test for the net.IP flag type | Eric Paris | |
| 2015-08-05 | Merge pull request #36 from eparis/empty-slices | Eric Paris | |
| Empty slices should be empty - not length 1 with an empty string | |||
| 2015-08-05 | Do not include \n in Errorf output | Eric Paris | |
| 2015-08-05 | Empty slices should be empty, not have a single (empty) string | Eric Paris | |
| 2015-08-05 | Merge pull request #35 from eparis/slice-multi-call | Eric Paris | |
| String and Int slices called twice should append not overwrite | |||
| 2015-08-05 | String and Int slices called twice should append not overwrite | Eric Paris | |
| This allows users to do things like ``` cmd --filename=file1 --filename=file2 --filename=file3,file4 ``` And internally we will get ``` []string{"file1", "file2", "file3", "file4"} ``` | |||
| 2015-08-05 | Merge pull request #34 from eparis/slice-show-bracket | Eric Paris | |
| Show [] around string slices when showing the text | |||
| 2015-08-05 | Show [] around string slices when showing the text | Eric Paris | |
| This means things like autogenerated docs will show `--filename=[]` instead of just `--filename=` | |||
| 2015-06-22 | Merge pull request #30 from eparis/docs | Eric Paris | |
| docs | |||
| 2015-06-22 | docs | Eric Paris | |
| 2015-06-22 | Merge pull request #20 from eparis/optional-args | Eric Paris | |
| Fix '--flag arg' and Allow flags to take optional arguments | |||
| 2015-06-22 | Add support for '--flag arg' | Eric Paris | |
| 2015-06-22 | Set default values if no arg given | Eric Paris | |
