Skip to content

Commit 238cf6f

Browse files
committed
wording updates
1 parent adae048 commit 238cf6f

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

cmd/src/abc_variables_delete.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Examples:
2424

2525
flagSet := flag.NewFlagSet("delete", flag.ExitOnError)
2626
var variableArgs abcVariableArgs
27-
flagSet.Var(&variableArgs, "var", "Variable name to delete. Repeat to delete multiple variables.")
27+
flagSet.Var(&variableArgs, "var", "Variable name to delete. Repeat for multiple names.")
2828
usageFunc := func() {
2929
fmt.Fprintf(flag.CommandLine.Output(), "Usage of 'src abc <workflow-instance-id> variables %s':\n", flagSet.Name())
3030
flagSet.PrintDefaults()
@@ -65,12 +65,7 @@ Examples:
6565
return nil
6666
}
6767

68-
if len(variableNames) == 1 {
69-
fmt.Printf("Removed variable %q from workflow instance %q.\n", variableNames[0], instanceID)
70-
return nil
71-
}
72-
73-
fmt.Printf("Removed %d variables from workflow instance %q.\n", len(variableNames), instanceID)
68+
fmt.Printf("Removed variables %q from workflow instance %q.\n", variableNames, instanceID)
7469
return nil
7570
}
7671

0 commit comments

Comments
 (0)