From fb47b5b725a25fd25683ba6c5d3cc9b424d4425a Mon Sep 17 00:00:00 2001 From: rsteube Date: Tue, 25 Jul 2023 09:56:36 +0200 Subject: [PATCH] tmp --- defaultActions_test.go | 2 +- example/cmd/chain_test.go | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/defaultActions_test.go b/defaultActions_test.go index 14fc8fda3..0ed257179 100644 --- a/defaultActions_test.go +++ b/defaultActions_test.go @@ -39,7 +39,7 @@ func TestActionFlags(t *testing.T) { cmd.Flag("alpha").Changed = true a := actionFlags(cmd).Invoke(Context{Value: "-a"}) - assertEqual(t, ActionValuesDescribed("b", "", "h", "help for this command").Tag("flags").NoSpace().Invoke(Context{}).Prefix("-a"), a) + assertEqual(t, ActionValuesDescribed("b", "", "h", "help for this command").Tag("flags").NoSpace('b', 'h').Invoke(Context{}).Prefix("-a"), a) } func TestActionExecCommandEnv(t *testing.T) { diff --git a/example/cmd/chain_test.go b/example/cmd/chain_test.go index b63968c6d..f59783825 100644 --- a/example/cmd/chain_test.go +++ b/example/cmd/chain_test.go @@ -16,7 +16,7 @@ func TestShorthandChain(t *testing.T) { "o", style.Yellow, "v", style.Blue, ).Prefix("-b"). - NoSpace(). + NoSpace('c', 'o'). Tag("flags")) s.Run("chain", "-bc"). @@ -25,7 +25,7 @@ func TestShorthandChain(t *testing.T) { "o", style.Yellow, "v", style.Blue, ).Prefix("-bc"). - NoSpace(). + NoSpace('c', 'o'). Tag("flags")) s.Run("chain", "-bcc"). @@ -34,7 +34,7 @@ func TestShorthandChain(t *testing.T) { "o", style.Yellow, "v", style.Blue, ).Prefix("-bcc"). - NoSpace(). + NoSpace('c', 'o'). Tag("flags")) s.Run("chain", "-bcco"). @@ -42,7 +42,7 @@ func TestShorthandChain(t *testing.T) { "c", style.Default, "v", style.Blue, ).Prefix("-bcco"). - NoSpace(). + NoSpace('c'). Tag("flags")) s.Run("chain", "-bcco", ""). @@ -74,7 +74,7 @@ func TestShorthandChain(t *testing.T) { "c", style.Default, "o", style.Yellow, ).Prefix("-c"). - NoSpace(). + NoSpace('c', 'o'). Tag("flags")) }) }