Skip to content

Commit

Permalink
make flag less verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaWilkes committed Nov 4, 2024
1 parent 3c9ae09 commit 16ba8c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/cli/command/availability_spec/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var deleteCommand = cli.Command{
Name: "delete",
Usage: "Delete an Availability Spec",
Flags: []cli.Flag{
&cli.StringFlag{Name: "availability-spec-id", Required: true, Usage: "the Availability Spec ID to delete"},
&cli.StringFlag{Name: "id", Required: true, Usage: "the Availability Spec ID to delete"},
},
Action: func(c *cli.Context) error {
ctx := c.Context
Expand All @@ -27,7 +27,7 @@ var deleteCommand = cli.Command{
client := configsvc.NewFromConfig(cfg)

res, err := client.AvailabilitySpec().DeleteAvailabilitySpec(ctx, connect.NewRequest(&configv1alpha1.DeleteAvailabilitySpecRequest{
Id: c.String("availability-spec-id"),
Id: c.String("id"),
}))
if err != nil {
return err
Expand Down

0 comments on commit 16ba8c8

Please sign in to comment.