@@ -23,7 +23,7 @@ func TestCommand(t *testing.T) {
2323 name : "--foo" ,
2424 cmd : func () * Command {
2525 c := & Command {Name : "foo" }
26- c .Flags ().Bool ("foo" , false , "" )
26+ c .Flags ().Bool ("foo" , false , FlagDoc {} )
2727 return c
2828 },
2929 args : []string {"--foo" },
@@ -37,7 +37,7 @@ func TestCommand(t *testing.T) {
3737 name : "-f" ,
3838 cmd : func () * Command {
3939 c := & Command {Name : "foo" }
40- c .Flags ().BoolShort ("foo" , "f" , false , "" )
40+ c .Flags ().BoolShort ("foo" , "f" , false , FlagDoc {} )
4141 return c
4242 },
4343 args : []string {"-f" },
@@ -51,7 +51,7 @@ func TestCommand(t *testing.T) {
5151 name : "bind to config" ,
5252 cmd : func () * Command {
5353 c := & Command {Config : & config {}}
54- c .Flags ().Bool ("flag" , false , "" )
54+ c .Flags ().Bool ("flag" , false , FlagDoc {} )
5555 return c
5656 },
5757 args : []string {"--flag" },
@@ -65,7 +65,7 @@ func TestCommand(t *testing.T) {
6565 name : "--count" ,
6666 cmd : func () * Command {
6767 c := & Command {Config : & config {}}
68- c .Flags ().Int ("count" , 12 , "" )
68+ c .Flags ().Int ("count" , 12 , FlagDoc {} )
6969 return c
7070 },
7171 args : []string {"--count" , "10" },
@@ -78,7 +78,7 @@ func TestCommand(t *testing.T) {
7878 name : "--count default" ,
7979 cmd : func () * Command {
8080 c := & Command {Config : & config {}}
81- c .Flags ().Int ("count" , 12 , "" )
81+ c .Flags ().Int ("count" , 12 , FlagDoc {} )
8282 return c
8383 },
8484 args : []string {},
@@ -91,7 +91,7 @@ func TestCommand(t *testing.T) {
9191 name : "--skip-prefix" ,
9292 cmd : func () * Command {
9393 c := & Command {Config : & config {}}
94- c .Flags ().StringSlice ("skip-prefix" , []string {"_" }, "" , false )
94+ c .Flags ().StringSlice ("skip-prefix" , []string {"_" }, false , FlagDoc {} )
9595 return c
9696 },
9797 args : []string {"--skip-prefix" , "_" , "foo_" },
@@ -105,7 +105,7 @@ func TestCommand(t *testing.T) {
105105 name : "--skip-prefix default" ,
106106 cmd : func () * Command {
107107 c := & Command {Config : & config {}}
108- c .Flags ().StringSlice ("skip-prefix" , []string {"_" }, "" , false )
108+ c .Flags ().StringSlice ("skip-prefix" , []string {"_" }, false , FlagDoc {} )
109109 return c
110110 },
111111 args : []string {},
0 commit comments