From 3f175f699e80d696031e2e7a5b9b773367ce66a2 Mon Sep 17 00:00:00 2001 From: Arnaud J Le Hors Date: Mon, 4 Apr 2022 15:48:43 +0200 Subject: [PATCH] Fix command Usage This changes the cmd Usage text to accurately represents the supported syntax: Usage: ./scorecard (--repo= | --local= | --{npm,pypi,rubygems}= ) [--checks=check1,...] [--show-details] [flags] Signed-off-by: Arnaud J Le Hors --- cmd/root.go | 5 ++--- options/flags.go | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index cf8c1e594066..a93f361f5dae 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -37,9 +37,8 @@ import ( const ( scorecardLong = "A program that shows security scorecard for an open source software." - scorecardUse = `./scorecard [--repo=] [--local=folder] [--checks=check1,...] - [--show-details] or ./scorecard --{npm,pypi,rubygems}= - [--checks=check1,...] [--show-details]` + scorecardUse = `./scorecard (--repo= | --local= | --{npm,pypi,rubygems}= ) [--checks=check1,...] + [--show-details]` scorecardShort = "Security Scorecards" ) diff --git a/options/flags.go b/options/flags.go index 7b17ce066181..e5948e01ebf6 100644 --- a/options/flags.go +++ b/options/flags.go @@ -73,7 +73,7 @@ func (o *Options) AddFlags(cmd *cobra.Command) { &o.Repo, FlagRepo, o.Repo, - "repository to check", + "URL of repository to check", ) cmd.Flags().StringVar(