Skip to content

Commit

Permalink
Update usage text on commands with arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
trgeiger committed Apr 21, 2024
1 parent 1d0f8bc commit bb26e9e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cmd/disable.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (

func NewDisableCmd(fs afero.Fs, out io.Writer) *cobra.Command {
return &cobra.Command{
Use: "disable",
Use: "disable [repo(s)...]",
Args: cobra.MinimumNArgs(1),
Short: "Disable one or more Copr repositories without uninstalling them.",
Short: "Disable one or more (space-separated) Copr repositories without uninstalling them.",
Run: func(cmd *cobra.Command, args []string) {
for _, arg := range args {
repo, err := app.NewCoprRepo(arg)
Expand Down
4 changes: 2 additions & 2 deletions cmd/enable.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ func enableRepo(r *app.CoprRepo, fs afero.Fs, out io.Writer) error {

func NewEnableCmd(fs afero.Fs, out io.Writer) *cobra.Command {
return &cobra.Command{
Use: "enable",
Use: "enable [repo(s)...]",
Aliases: []string{"add"},
Args: cobra.MinimumNArgs(1),
Short: "Enable or add one or more Copr repositories.",
Short: "Enable or add one or more (space-separated) Copr repositories.",
Run: func(cmd *cobra.Command, args []string) {
for _, arg := range args {
repo, err := app.NewCoprRepo(arg)
Expand Down
4 changes: 2 additions & 2 deletions cmd/remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var (

func NewRemoveCmd(fs afero.Fs, out io.Writer) *cobra.Command {
cmd := &cobra.Command{
Use: "remove",
Use: "remove [repo(s)...]",
Aliases: []string{"delete"},
Args: func(cmd *cobra.Command, args []string) error {
if deleteAll {
Expand All @@ -32,7 +32,7 @@ func NewRemoveCmd(fs afero.Fs, out io.Writer) *cobra.Command {
}
return nil
},
Short: "Uninstall one or more Copr repositories.",
Short: "Uninstall one or more (space-separated) Copr repositories.",
Run: func(cmd *cobra.Command, args []string) {
var repos []string
if deleteAll {
Expand Down

0 comments on commit bb26e9e

Please sign in to comment.