Backported from upstream PR: https://github.com/urfave/cli/pull/1299
---
diff --git a/app_test.go b/app_test.go
index 33024ff..6b3aaa3 100644
--- a/app_test.go
+++ b/app_test.go
@@ -513,18 +513,18 @@ func TestApp_RunAsSubcommandParseFlags(t *testing.T) {
func TestApp_RunAsSubCommandIncorrectUsage(t *testing.T) {
a := App{
Flags: []Flag{
- StringFlag{Name: "--foo"},
+ StringFlag{Name: "foo"},
},
Writer: bytes.NewBufferString(""),
}
set := flag.NewFlagSet("", flag.ContinueOnError)
- _ = set.Parse([]string{"", "---foo"})
+ _ = set.Parse([]string{"", "-bar"})
c := &Context{flagSet: set}
err := a.RunAsSubcommand(c)
- expect(t, err, errors.New("bad flag syntax: ---foo"))
+ expect(t, err.Error(), "flag provided but not defined: -bar")
}
func TestApp_CommandWithFlagBeforeTerminator(t *testing.T) {
pe='submit' value='switch'/>
Wojtek's customized Guix | |
Age | Commit message (Expand) | Author |
2021-01-28 | gnu: libgdiplus: Update to 6.0.5....* gnu/packages/mono.scm (libgdiplus): Update to 6.0.5.
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
| Vincent Legoll |
2020-11-13 | gnu: julia: Update to 1.5.3....* gnu/packages/julia.scm (julia): Update to 1.5.3.
(libuv-julia): Update to 1fcc6d66f9df74189c74d3d390f02202bb7db953.
(julia-patch): Update version. No change to patches.
| Tobias Geerinckx-Rice |
2020-11-13 | gnu: libwhich: Compile natively, too....This follows up on commit 12424b3ecfdf401c72804ddfa4b2fa2d8b1b68e5.
* gnu/packages/julia.scm (libwhich)[arguments]: Fix non-cross
compilation.
| Tobias Geerinckx-Rice |
2020-11-13 | gnu: libwhich: Cross-compile....* gnu/packages/julia.scm (libwhich)[arguments]: Use CC-FOR-TARGET.
Look for zlib in NATIVE-INPUTS.
| Tobias Geerinckx-Rice |