Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace all "stringly typed" fields with slice equivalents #419

Merged
merged 2 commits into from
May 22, 2016

Conversation

meatballhat
Copy link
Member

and alter the Flag interface accordingly

Closes #415

This PR was extracted from #418.

and alter the Flag interface accordingly

Closes #415
@meatballhat meatballhat added this to the v2.0.0 milestone May 22, 2016
@codegangsta codegangsta added the status/claimed someone has claimed this issue label May 22, 2016
return fmt.Sprintf("%s\t%s", prefixedNames(names, placeholder), usageWithDefault)
}

func hasFlag(flags []Flag, fl Flag) bool {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this called anywhere?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops! Thanks for catching that 😸

On Sat, May 21, 2016, 22:08 Jesse Szwedko notifications@github.com wrote:

In flag.go
#419 (comment):

@@ -683,5 +715,15 @@ func stringifySliceFlag(usage, name string, defaultVals []string) string {
}

usageWithDefault := strings.TrimSpace(fmt.Sprintf("%s%s", usage, defaultVal))
  • return fmt.Sprintf("%s\t%s", prefixedNames(name, placeholder), usageWithDefault)
  • return fmt.Sprintf("%s\t%s", prefixedNames(names, placeholder), usageWithDefault)
    +}

+func hasFlag(flags []Flag, fl Flag) bool {

Is this called anywhere?


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/codegangsta/cli/pull/419/files/81fcf706ea1c2bdde52d04088a9c5b0bc1a97f7a#r64142989

@jszwedko
Copy link
Contributor

👏 this is great, one question, otherwise :shipit:

@jszwedko
Copy link
Contributor

👏

@jszwedko jszwedko merged commit b35c8a9 into v2 May 22, 2016
@codegangsta codegangsta removed the status/claimed someone has claimed this issue label May 22, 2016
@meatballhat meatballhat deleted the remove-stringlies branch May 28, 2016 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants