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) { koszko-scripts'>koszko-scripts Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/gnu/services/admin.scm
AgeCommit message (Collapse)Author
2019-06-15services: Remove unneeded imports that led to cycles.Ludovic Courtès
Fixes <https://bugs.gnu.org/36207>. Reported by Jack Hill <jackhill@jackhill.us>. * gnu/services/admin.scm: Remove unneeded import of (gnu services base). * gnu/services/mcron.scm: Likewise.
2018-12-23services: Fix typo in (gnu services admin).Tobias Geerinckx-Rice
* gnu/services/admin.scm: Fix typo in licence header.
2018-10-04services: rottlog: Use command strings in the mcron jobs.Ludovic Courtès
* gnu/services/admin.scm (default-jobs): Remove the lambda around "/…/bin/rottlog" to make "herd schedule mcron" more transparent (otherwise it just says "Lambda function").