Skip to content

v0.0.1

Compare
Choose a tag to compare
@rsteube rsteube released this 06 Sep 21:44
· 46 commits to master since this release
93dfcaa

Changelog

  • 93dfcaa Merge pull request #1 from rsteube/github-action
  • 7d73cd6 github action
  • c3dbbf2 Merge pull request #2 from rsteube/fmt
  • 15c8beb go fmt
  • 8cd3d9f Update README.md
  • d5e0c06 allow for blank ip addresses (spf13#316)
  • 85dd5c8 Add IPNetSlice and unit tests (spf13#170)
  • 6971c29 remove dead code for checking error nil (spf13#282)
  • 81378bb Add exported functions to preserve pkg/flag compatibility (spf13#220)
  • 2e9d26c Merge pull request spf13#219 from cfromknecht/fix-mod
  • 14457a6 Remove require pflag v1.0.3
  • e8f2996 Fix typo in go.mod
  • 7b22f68 Merge pull request spf13#216 from therealmitchconnors/elegant
  • 8e39cc4 gofmt
  • 68f4136 Add SliceValue Comments
  • b22fc70 Expand SliceValue support to all slice and array types.
  • c6c0f0f Add first SliceValue implementations
  • 9722382 Added String-To-Int64 option parsing (spf13#211)
  • 6d93a82 Merge pull request spf13#201 from Fedosin/fix_descriptions
  • 7be56ae Merge pull request spf13#210 from dsbrng25b/master
  • 4890c25 Fix package doc
  • b3e76d4 Fix descriptions for StringSlice functions
  • 24fa697 fix misspell (spf13#197)
  • 916c5bf Fix typo in count.go (spf13#196)
  • aea12ed add int32 & int64 slice support (spf13#194)
  • 454a7fb add float32 & float64 slice support (spf13#192)
  • 082b515 Travis: test on 1.9 as well (spf13#191)
  • 252d3ee travis: update to 1.10 and 1.11 in travis tests (spf13#190)
  • 0873577 Fix golint import path (spf13#189)
  • b5e1a80 Sentence restructure and grammar fix (spf13#188)
  • 298182f Fix panic when parsing unknown flag followed by empty argument (spf13#173)
  • d929dcb Handle single string=>string flags without quotes (spf13#179)
  • 947b89b Add map valued (string->string, string->int) flags. (spf13#133)
  • 9a97c10 bytes: add support for base64 encoded flags (spf13#177)
  • 3ebe029 Allow bubbling up of -test.* flags (spf13#169)
  • 583c0c0 Typo correction in flag.go (spf13#164)
  • 329ebf1 Allow Users To Show Deprecated Flags (spf13#163)
  • 1ce0cc6 make x.Parsed() return true after AddGoFlagSet(x) and pflag.Parse() (spf13#162)
  • 1cd4a0c add ability to ignore unknown flags (spf13#160)
  • ad68c28 Add multiline wrapping support (spf13#155)
  • 45e82a3 Implement BytesHex type of argument (spf13#115)
  • ee5fd03 doc: clarify difference between string slice vs. array (spf13#158)
  • 6a877eb DurationSlice: implementation and tests (spf13#122)
  • 4c012f6 Add uintSlice and boolSlice to name prettifier (spf13#150)
  • 97afa5e Prevent printing when using ContinueOnError (spf13#144)
  • 1f33b80 add int16 flag (spf13#143)
  • a9789e8 Remove redundant break
  • 2c300e7 Fixing Count flag usage string (spf13#141)
  • be7121d Fix SetNormalizeFunc (spf13#137)
  • 5c2d607 Generate flag error output for errors returned from the parseFunc (spf13#138)
  • 7aff26d New: renamed intSlice to ints in usage
  • 230e229 Fixed: updated unittest
  • adc6ccc New: added a default name to avoid stringSlice in the usage message.
  • e57e3ee Delete example, what isn't even shown in docs
  • 80fe0fb Testing for Shorthand Lookup
  • 75859d1 Add example to FlagSet.ShorthandLookup
  • 86425cb Add example to ShorthandLookup
  • 10b28b3 Add note about panic in ShorthandLookup
  • a84f757 Allow lookup by shorthand (spf13#106)
  • c990990 Add Go 1.8.1 to .travis.yml
  • af3f947 Update .travis.yml
  • f1d95a3 Unify error message for panic and f.out
  • 314c91c Use comparison a string with "" instead of comparison of len
  • 1cd6182 Prevent parsing if there are no arguments
  • 9c8891d Add more verbosity to panic of shorthand redefinition
  • 1d9fab4 Use f.out in output flag deprecation
  • 4995a3e Make more detailed error in Set
  • 9421342 Add comments for better understanding of parsing short flags
  • 159e1d7 Document Count function
  • e466d44 Delete setFlag
  • 686edd7 Fix alreadythere variable name
  • af10531 Note about SortFlags in README
  • 2300d0f Merge pull request spf13#119 from bogem/cachesortede
  • 9e4c210 Merge pull request spf13#75 from jonathanmarvens/patch-1
  • d627760 Merge pull request spf13#116 from bogem/fixdocs
  • e453343 flag_test: fix go vet (spf13#123)
  • 0328f15 Cache sorted flags
  • 9a906f1 Prevent changing order of flags after SetNormalizeFunc() (spf13#121)
  • d16db1e Modified to display a string default value as double quoted and escaped (spf13#118)
  • d90f37a Add SortFlags option (spf13#113)
  • b205ad1 Change ogier to spf13 in docs and README
  • 9ff6c69 Add FlagSet.FlagUsagesWrapped(cols) which wraps to the given column (spf13#105)
  • a9a634f Add BoolSlice and UintSlice flag types. (spf13#111)
  • a232f6d Merge pull request spf13#102 from bogem/redundant
  • 5126803 Merge pull request spf13#110 from hardikbagdi/master
  • 230dccf add badges to README.md
  • c431975 Merge pull request spf13#107 from xilabao/add-user-supplied-func-when-parse
  • 271ea0e Make command line parsing available outside pflag
  • 25f8b5b Merge pull request spf13#109 from SinghamXiao/master
  • 1fcda0c too many arguments
  • 5ccb023 Remove Go 1.5 from Travis
  • 86d3545 Clean up code
  • dabebe2 Merge pull request spf13#101 from dnephin/fix-default-value-of-string
  • 7597b27 Don't print escaped strings for the default value of string flags with a default is set.
  • 0e7ce96 Merge pull request spf13#100 from dnephin/dont-escape-windows-paths
  • f2a61de Don't print escaped strings for the default value of string flags.
  • bf8481a Merge pull request spf13#99 from mmilata/string-array-square-brackets
  • b027180 Fix square bracket handling in string_array
  • b83537d Merge pull request spf13#98 from shenwei356/master
  • 13e924d fix bug of string_slice with square brackets
  • 4bd6963 Merge pull request spf13#94 from bogem/noverbs
  • 92abf19 Optimize fmt statements
  • c7e63cf Merge pull request spf13#93 from bogem/flagStrings
  • 7b17cc4 Merge pull request spf13#92 from moorereason/iss91
  • d16d05e Use strconv instead of fmt in values' String funcs
  • 5b54501 Fix default values for custom fields
  • 6fd2ff4 Merge pull request spf13#90 from wu8685/string_array
  • 191ef6f add a new type StringArray
  • 103ce5c Merge pull request spf13#88 from bogem/fixes
  • b38ddae Add check of error in int slice test
  • 6ca9554 Fix verbs for *bool in bool test
  • 6454a84 Merge pull request spf13#82 from wu8685/comma-in-string-slice
  • d68ef7c Fix bug in FlagSet.GetStringSlice when a comma in a string slice value
  • 4f91904 Merge pull request spf13#78 from moorereason/go1.7-zerovalues
  • b2cdba0 Update travis config
  • f90e8bb Refactor default value detection
  • 01665e1 Merge pull request spf13#85 from bogem/usage
  • f26459a Use flag's string type in usage Now in usage shows flag.Value.Type() instead of flag.Value.(type), what makes library more flexible
  • f676131 Merge pull request spf13#84 from apelisse/fix-empty-string-slice
  • 1ceb032 Fix string_slice with empty value
  • 1560c10 Bump Go versions in Travis config
  • 3f939ad Removed unused field "exitOnError".
  • 3678644 Merge pull request spf13#74 from alexbrand/master
  • 253e780 Document AddGoFlagSet method in the README file
  • cb88ea7 Passthrough flags inserted by go test
  • 74a7afd Fix a typo in README
  • 8f6a28b Merge pull request spf13#67 from johnSchnake/availableFlags
  • b36bf8b Add simple method to see if a flagset has available flags
  • 1f29671 Merge pull request spf13#69 from johnSchnake/travisUpdate
  • e91c111 Remove go 1.3 and 1.4 from travis; add 1.6
  • 7f60f83 Issue spf13#55: implement Go 1.5-style default usage formatting.
  • 76a42ea Better support golang flag short values
  • 08b1a58 Merge pull request spf13#59 from eparis/csv-escaping
  • 4e5c959 And test go 1.5 while we are at it
  • 9c1e8f8 Use encoding/csv to parse string slices
  • b084184 Merge pull request spf13#58 from eparis/code-cleanliness
  • b02994d Add more CI checks forcing code cleanliness
  • 5a13a75 Merge pull request spf13#56 from eparis/len-at-dash
  • b25fea9 Store the length of Args when a -- is found in commandline
  • f735fdf Merge pull request spf13#53 from sdomino/feature/private-flags
  • 574bc4c adding a private field to flags, and a function for marking flags as private
  • 8e7dc10 Merge pull request spf13#52 from JanetKuo/shorthand-deprecator
  • e12c301 Add shorthand deprecator
  • 112aaa5 Merge pull request spf13#51 from eparis/golangflag-defval
  • 4412b61 Do not trust golang flag's DefValue
  • 79cd276 Merge pull request spf13#49 from eparis/golangflags
  • a92a287 Add functions to support golang flags in pflags
  • 11251d7 Merge pull request spf13#48 from eparis/addFlagSet
  • e0e7ef7 New AddFlagSet function on FlagSet
  • 4b69d21 Merge pull request spf13#45 from eparis/use-type
  • 30f7e99 Use Type() instead of internal .(*stringValue)
  • ccad0e1 Merge pull request spf13#46 from eparis/goreportcard
  • da10e08 Merge pull request spf13#47 from eparis/usageMerge
  • 6e29cd8 Reduce code duplication in PrintDefaults/FlagUsages
  • 0692da7 Fix up minor things found by goreportcard.com
  • 1ad1648 Merge pull request spf13#44 from eparis/optional-flag-display
  • a5c4bbf Annotate optional flags in usageFunc
  • 580b9be Merge pull request spf13#43 from technoweenie/typo-anxiety
  • cc0d9fc typo
  • 4869ec2 Merge pull request spf13#41 from eparis/fix-slice-defaults
  • 978c009 Merge pull request spf13#42 from eparis/ogier-pick
  • a5b1ec7 Fix typo in bool_test.go (cherry picked from commit faf06f0)
  • 95a6a40 Do not append to default values in {String,Int}Slice
  • 41e9136 Merge pull request spf13#39 from eparis/changed-helper
  • dea3a79 More tests for Changed
  • e63672e Merge pull request spf13#38 from eparis/changed-helper
  • 72d256d New helper to easily see if a flag has been set
  • 534019b Merge pull request spf13#37 from eparis/ip-tests
  • 686b63f New counter flag type
  • 6fc1d08 Add new net.IPNet flag type
  • 30bf08c Add _test for the net.IP flag type
  • c2a4060 Merge pull request spf13#36 from eparis/empty-slices
  • 6048bb1 Do not include \n in Errorf output
  • 5108914 Empty slices should be empty, not have a single (empty) string
  • 08f0403 Merge pull request spf13#35 from eparis/slice-multi-call
  • 90b831e String and Int slices called twice should append not overwrite
  • af83f85 Merge pull request spf13#34 from eparis/slice-show-bracket
  • 3ff81a4 Show [] around string slices when showing the text
  • 67cbc19 Merge pull request spf13#30 from eparis/docs
  • 1928639 docs
  • 6ff05c5 Merge pull request #20 from eparis/optional-args
  • 4699827 Add support for '--flag arg'
  • b319e90 Set default values if no arg given
  • 9d0766e Merge pull request spf13#27 from eparis/SliceStrings
  • 4c933e9 Tests for GetIntSlice and GetStringSlice
  • 6dc14aa Much like stringSlice, add intSlice flag type
  • 29224ee Add new StringSlice flag type
  • 0367f40 Merge pull request #25 from eparis/GetFlagType
  • 381cb82 Merge pull request spf13#29 from liggitt/set_annotation
  • 65c4dba Add SetAnnotation helper
  • 1e0a23d Add new FlagSet.Get{Int,String,...} accessor functions
  • 5644820 Merge pull request spf13#26 from eparis/moar-tests
  • 2453ff6 Moar flag_test!
  • c87d53d Remove Value.Get() interfaces
  • 8a0b846 Merge pull request #24 from eparis/longArgCleanup
  • cfd553f Slight code cleanup parsing long flags
  • b91b2a9 Added a test for normalizing usage name
  • 14a8257 Fixed statement
  • 65be560 Normalization should change the name
  • 0ed81a9 Merge pull request #22 from andronat/multiple_narmalization_requests
  • ce8e092 Call normalizeFlagName function only once
  • f1e68ce Merge pull request #21 from eparis/bool-equal-fix
  • 7bb45fd Support bool= with shortnames
  • 0d4b3d7 Merge pull request #19 from eparis/parse-rework
  • ea54083 Rewrite short arg parsing for readability
  • 1bfac8f parseLongArg code rework for readability
  • 8730624 Merge pull request #16 from eparis/merge
  • 32bfad6 Merge pull request #17 from eparis/NormalizeFuncReadme
  • 8f325b4 Add docs and examples how to use the flag normalization func
  • bae9b8d Update travis for spf13
  • 9add834 Merge remote-tracking branch 'ogier/master' into merge
  • d4ebabf Merge pull request #15 from eparis/generic-flag-normalization-thockin
  • 0474b1a Custom normalization func
  • 8dc3567 Make normalizedName external so we can make the functions external
  • 8e80315 Merge pull request #9 from eparis/deprecated-flag
  • 8824ec2 Ability to mark flags as deprecated
  • 60d4c37 Merge pull request #10 from eparis/declare_by_name
  • 5a5d661 Merge pull request #12 from fabianofranz/master
  • 08b1790 Merge pull request #13 from thockin/dash-under-equiv
  • 4ac8829 Allow WordSeparators to be set after flags are added
  • beb8d73 Allow flag name normalization for compare
  • f216627 Add support to short form with equal sign: -p=value
  • db78b3f Declare Flag{ by name instead of order
  • 18d831e add annotations for flags
  • 11b7cf8 Always return when err is not nil.
  • 370c317 Merge pull request #5 from ncdc/fix-double-dash-termination
  • f160cd4 Fix handling of -- termination
  • 2e6f5f3 Add Travis build status marker to README
  • 760e47f Move test files to the 'pflag' package
  • 32a05c6 Merge pull request #15 from ogier/enable_travis_ci
  • fceeeaf Add .travis.yml file
  • 6cc5761 Fixed noisy test case for the new boolFlag
  • f82776d Merge pull request #3 from filbranden/bool_value_for_spf13
  • 376ea2f Add unit test case for IsBoolValue() implementing a tri-state flag (true/false/maybe)
  • c75d600 Add support for custom boolean flags through IsBoolFlag()
  • ed64959 Add unit test case for IsBoolValue() implementing a tri-state flag (true/false/maybe)
  • 8f20f9e Add support for custom boolean flags through IsBoolFlag()
  • 99bcedf Fix unit tests to include Type() method in custom types
  • 463bdc8 Adding Type() method to the values.
  • b02196a Moving Value interface to the appropriate file
  • 2790b68 Fixing issues so test pass again
  • b9035d0 Merge branch 'master' of https://github.com/ogier/pflag
  • e4f7d00 Merge pull request #7 from alecthomas/master
  • da6063a Update docs on GetCommandLine.
  • e101bb9 Compatibility: commandLine -> CommandLine
  • f235ad3 More data types. Each in a separate file.
  • f791c74 Merge pull request #5 from schickling/patch-1
  • 9c2f53a Make reuse message more clear
  • 94e98a5 adding changed flag on flag to track user set vs default
  • 5bc978f Fixing bug where invalid trailing short flag would cause panic
  • 35f8082 cleaning up and adding some functionality needed by cobra
  • fc2d9a0 Add a link to godoc.org
  • a7be1c8 Merge pull request #2 from alecthomas/master
  • 6c61b06 Fix comment.
  • 7c5bc8f Set interspersed behaviour via a setter.
  • 2e48115 Add support for non-interspersed option/non-option args.
  • fc678a4 Squelch internal error messages while testing
  • b7e6471 Add missing VarP function for the default command line
  • bc8eb13 Merge changes from Go's standard flag library.
  • 9294901 Tighten up parsing to be less ambiguous, follow GNU conventions
  • 4255cba Use proper markdown links
  • 29188b4 New section heading for command-line usage
  • fd456b3 Reformat go snippets in the README
  • d96927a Add README
  • 2f687e3 Formatted with go fmt
  • 390e219 Fix up pflag's usage documentation, and reference GNU spec
  • 4d58223 Import the full github path in tests
  • 123e817 Fix up example for pflag
  • 0b6c6ef s/shortcut/shorthand/
  • ebc6c1c Document the spaceless shortcut argument format -Ifile
  • 8999eae Print defaults with nice spacing regardless of shortcuts
  • de8374a Update package documentation for POSIX-style flags
  • c547eeb Add a LICENSE file
  • bdbfd80 Fix tests for interspersed parsing
  • c94d813 Fix up tests to use long -- form
  • ab36dbb Nicer error message for undefined flags
  • 11e2e15 Mark flags as visited based on their name
  • 58f9824 Rename package flag --> pflag
  • 27b2eab Oops, allocate memory for arguments, don't set them to ""
  • 6cdd807 Allow -Ifile, -n3 style shorthand
  • a03ac71 Print out usage in the proper POSIX format
  • 79f293c Modify flag parser to handle -shortcut and long --options
  • 29d09b8 Add Shortcut field to Flag, and *P() versions of flags that take shortcuts
  • 6bdb0b3 Copy the flag module from the go standard library