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) { ='submit' value='switch'/> Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/ntp.scm
AgeCommit message (Expand)Author
2019-09-29gnu: tlsdate: Build against OpenSSL@1.0....* gnu/packages/ntp.scm (tlsdate)[inputs]: Change from OPENSSL to OPENSSL-1.0. Marius Bakke
2019-09-08gnu: openntpd: Fix error CA errors when using constraints....The error printed by nttpd was "constraint: failed to load constraint ca" when libressl tried loading the file /etc/ssl/cert.pem. The problem was investigated as part of fixing issue 37318 (see: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=37318). * gnu/packages/ntp.scm (openntpd)[configure-flags]: Use the '--with-cacert' flag to specify the location of the certificate authority file of libressl. Maxim Cournoyer
2019-03-18gnu: ntp: Update to 4.2.8p13....* gnu/packages/ntp.scm (ntp): Update to 4.2.8p13. Tobias Geerinckx-Rice