urfave / cli

A simple, fast, and fun package for building command line apps in Go

Home Page:https://cli.urfave.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SliceFlagSeparator can affect subcommands, whereas DisableSliceFlagSeparator does not.

chenlein opened this issue · comments

Checklist

  • [y] Are you running the latest v3 release? The list of releases is here.
  • [y] Did you check the manual for your release? The v3 manual is here.
  • Did you perform a search about this feature? Here's the GitHub guide about searching.

What problem does this solve?

That can influence subcommands by setting the DisableSliceFlagSeparator parameter in the top-level command.

Solution description

As the behavior of the DisableSliceFlagSeparator parameter shoud be consistent with that of SliceFlagSeparator

Describe alternatives you've considered

set DisableSliceFlagSeparator flag for all subcommands!

@chenlein this is by design since we are assumimg that the user knows which commands needs the slice flag separator and which doesnt. This is tough to fix without breaking user expectations .