Skip to content

Commit bce4efd

Browse files
Populate flag variables (#430)
Fixes a bug where the customer flag was being ignored
1 parent 2e1728e commit bce4efd

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

cli/cmd/customer_download_license.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,16 @@ You must specify the customer using either their name or ID with the --customer
3232
3333
# Download license for a customer in a specific app (if you have multiple apps)
3434
replicated customer download-license --app myapp --customer "Acme Inc" --output license.yaml`,
35-
RunE: func(cmd *cobra.Command, args []string) error {
35+
RunE: func(cmd *cobra.Command, args []string) (err error) {
36+
37+
if customer, err = cmd.Flags().GetString("customer"); err != nil {
38+
return err
39+
}
40+
41+
if output, err = cmd.Flags().GetString("output"); err != nil {
42+
return err
43+
}
44+
3645
return r.downloadCustomerLicense(cmd, customer, output)
3746
},
3847
SilenceUsage: true,

0 commit comments

Comments
 (0)