From 7124680913b3bf6e5a8d8d8de73b780b508e7989 Mon Sep 17 00:00:00 2001 From: Aaron Frase Date: Tue, 24 Oct 2017 12:17:48 -0400 Subject: [PATCH] Changed version flag --- .goreleaser.yml | 11 +++++++++++ main.go | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 740549f..e76ac11 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -31,6 +31,17 @@ archive: - goos: windows format: zip +brew: + github: + owner: afrase + name: mysqldumpsplit-homebrew-tap + commit_author: + name: afrase + email: afrase91@gmail.com + description: "Split a mysqldump into separate files for each table." + test: | + system "#{bin}/mysqldumpsplit -version" + snapshot: name_template: SNAPSHOT-{{ .Commit }} diff --git a/main.go b/main.go index 67a0223..0e92ec6 100644 --- a/main.go +++ b/main.go @@ -34,7 +34,7 @@ func parseFlags() *config { "Combine all tables into a single file, deletes individual table files") flag.StringVar(&conf.CombineFilePath, "combineFile", "dumpfile.sql", "The path to output a single SQL file\n\tOnly used if combine flag is set") - flag.BoolVar(&conf.Version, "v", false, "Display the version and exit") + flag.BoolVar(&conf.Version, "version", false, "Display the version and exit") flag.Parse() return conf