From d00bd9fa2e431a3fe34bfc775e05744aab7b780c Mon Sep 17 00:00:00 2001 From: Ross Spencer Date: Mon, 15 Mar 2021 15:19:55 +0100 Subject: [PATCH] Fixup Codegangsta CLI args Makes the CLI arg parameters match the main bolter branch while maintaining the legacy functionality of 'old'. --- bolter.go | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/bolter.go b/bolter.go index dc174b8..00db182 100644 --- a/bolter.go +++ b/bolter.go @@ -35,20 +35,24 @@ AUTHOR: app.Name = "bolter" app.Usage = "view boltdb file in your terminal" app.Version = "1.0.0" - app.Author = "Hasit Mistry" - app.Email = "hasitnm@gmail.com" + app.Authors = []*cli.Author{ + &cli.Author{ + Name: "Hasit Mistry", + Email: "hasitnm@gmail.com", + }, + } app.Flags = []cli.Flag{ - cli.StringFlag{ + &cli.StringFlag{ Name: "file, f", Usage: "boltdb `FILE` to view", Destination: &file, }, - cli.StringFlag{ + &cli.StringFlag{ Name: "bucket, b", Usage: "boltdb `BUCKET` to view", Destination: &bucket, }, - cli.BoolFlag{ + &cli.BoolFlag{ Name: "machine, m", Usage: "key=value format", Destination: &machineFriendly,