grim/convey

df51173201f2
Parents c5fa46274743
Children 2646ef22600e
Unknown command line arguments are now fatal. Fixes #149
  • +2 -2
    ChangeLog
  • +8 -2
    main.go
  • --- a/ChangeLog Sun Jan 07 02:59:13 2018 -0600
    +++ b/ChangeLog Sun Jan 07 03:07:02 2018 -0600
    @@ -1,6 +1,6 @@
    0.12.0:
    - * Deprecated engine attribute, and changed type attribute to be
    - {engine}/{type}. Warnings will be output if legacy formats are detected.
    + * Deprecated engine attribute, and changed type attribute to be {engine}/{type}. Warnings will be output if legacy formats are detected. Fixed # 143
    + * Unknown command line arguments are now fatal. Fixed #149
    0.11.2: 20171227
    * Changed TaskTimeout to PlanTimeout. Fixed # 134
    --- a/main.go Sun Jan 07 02:59:13 2018 -0600
    +++ b/main.go Sun Jan 07 03:07:02 2018 -0600
    @@ -66,11 +66,17 @@
    verbose = app.Flag("verbose", "Be more verbose").Short('v').Default("False").Bool()
    allowDeprecated = app.Flag("allow-deprecated", "Allow the user of deprecated features").Default("False").Bool()
    - planNames = app.Arg("plan", "The plan or list of plans to run in specified order").Strings()
    + planNames = app.Arg("plan", "The plan or list of plans to run in specified order").Default("default").Strings()
    )
    func gomain() int {
    - app.Parse(os.Args[1:])
    + args := os.Args[1:]
    +
    + _, err := app.Parse(args)
    + if err != nil {
    + app.Usage(args)
    + return 1
    + }
    // setup logging
    if err := logging.Setup(*color, *verbose); err != nil {