From 9396c1bbadb41d44a7ec5b7577ece54ad1f3c256 Mon Sep 17 00:00:00 2001 From: Michael McLoughlin Date: Sun, 25 Apr 2021 22:26:09 -0700 Subject: [PATCH] cmd/addchain: flag tweaks --- cmd/addchain/cite.go | 2 +- cmd/addchain/eval.go | 2 +- cmd/addchain/fmt.go | 2 +- cmd/addchain/search.go | 4 ++-- cmd/addchain/version.go | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/addchain/cite.go b/cmd/addchain/cite.go index f005c46..3285551 100644 --- a/cmd/addchain/cite.go +++ b/cmd/addchain/cite.go @@ -25,7 +25,7 @@ func (*cite) Usage() string { Output citation for addchain. - ` +` } func (cmd *cite) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) (status subcommands.ExitStatus) { diff --git a/cmd/addchain/eval.go b/cmd/addchain/eval.go index 58b947a..0d733a8 100644 --- a/cmd/addchain/eval.go +++ b/cmd/addchain/eval.go @@ -25,7 +25,7 @@ func (*eval) Usage() string { Evaluate an addition chain script. - ` +` } func (cmd *eval) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) (status subcommands.ExitStatus) { diff --git a/cmd/addchain/fmt.go b/cmd/addchain/fmt.go index 0de88b2..00f56b9 100644 --- a/cmd/addchain/fmt.go +++ b/cmd/addchain/fmt.go @@ -26,7 +26,7 @@ func (*format) Usage() string { Format an addition chain script. - ` +` } func (cmd *format) SetFlags(f *flag.FlagSet) { diff --git a/cmd/addchain/search.go b/cmd/addchain/search.go index 8c8f55a..541559c 100644 --- a/cmd/addchain/search.go +++ b/cmd/addchain/search.go @@ -34,11 +34,11 @@ func (*search) Usage() string { Search for an addition chain for . - ` +` } func (cmd *search) SetFlags(f *flag.FlagSet) { - f.IntVar(&cmd.concurrency, "p", runtime.NumCPU(), "number of algorithms to run in parallel") + f.IntVar(&cmd.concurrency, "p", runtime.NumCPU(), "run `N` algorithms in parallel") f.BoolVar(&cmd.verbose, "v", false, "verbose output") f.StringVar(&cmd.cpuprofile, "cpuprofile", "", "write cpu profile to `file`") } diff --git a/cmd/addchain/version.go b/cmd/addchain/version.go index ca263a9..0e0000c 100644 --- a/cmd/addchain/version.go +++ b/cmd/addchain/version.go @@ -21,11 +21,11 @@ type version struct { func (*version) Name() string { return "version" } func (*version) Synopsis() string { return "print addchain version" } func (*version) Usage() string { - return `Usage: version [] + return `Usage: version Print the version of the addchain tool. - ` +` } func (cmd *version) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) (status subcommands.ExitStatus) {