Skip to content

Commit 1e18d0d

Browse files
Added required flags to Usage for ibmcloud CLI. #886
1 parent cea6543 commit 1e18d0d

12 files changed

Lines changed: 188 additions & 156 deletions

plugin/commands/tags/set.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ func NewSetCommand(sl *metadata.SoftlayerCommand) (cmd *SetCommand) {
3535
},
3636
}
3737

38-
cobraCmd.Flags().StringVar(&thisCmd.Tags, "tags", "", T("Comma seperated list of tags, enclosed in quotes. 'tag1,tag2' [required]"))
39-
cobraCmd.Flags().StringVar(&thisCmd.KeyName, "key-name", "", T("Key name of a tag type e.g. GUEST, HARDWARE. See slcli tags taggable output. [required]"))
40-
cobraCmd.Flags().IntVar(&thisCmd.ResourceId, "resource-id", 0, T("ID of the object being tagged [required]"))
38+
cobraCmd.Flags().StringVar(&thisCmd.Tags, "tags", "", T("Comma seperated list of tags, enclosed in quotes. 'tag1,tag2'"))
39+
cobraCmd.Flags().StringVar(&thisCmd.KeyName, "key-name", "", T("Key name of a tag type e.g. GUEST, HARDWARE. See slcli tags taggable output."))
40+
cobraCmd.Flags().IntVar(&thisCmd.ResourceId, "resource-id", 0, T("ID of the object being tagged"))
4141
cobraCmd.MarkFlagRequired("tags") //#nosec G104 -- This is a false positive
4242
cobraCmd.MarkFlagRequired("key-name") //#nosec G104 -- This is a false positive
4343
cobraCmd.MarkFlagRequired("resource-id") //#nosec G104 -- This is a false positive

plugin/i18n/v2Resources/active.de_DE.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1376,8 +1376,8 @@
13761376
"Comma separated list of tags, enclosed in quotes. 'tag1, tag2'": {
13771377
"other": "Liste mit durch Kommas getrennten Tags, eingeschlossen in Anführungszeichen. 'tag1, tag2'"
13781378
},
1379-
"Comma seperated list of tags, enclosed in quotes. 'tag1,tag2' [required]": {
1380-
"other": "Liste mit durch Kommas getrennten Tags, eingeschlossen in Anführungszeichen. 'tag1,tag2' [erforderlich]"
1379+
"Comma seperated list of tags, enclosed in quotes. 'tag1,tag2'": {
1380+
"other": "Liste mit durch Kommas getrennten Tags, eingeschlossen in Anführungszeichen. 'tag1,tag2'"
13811381
},
13821382
"Company": {
13831383
"other": "Firma"
@@ -3821,8 +3821,8 @@
38213821
"ID of an origin volume snapshot to use for duplication": {
38223822
"other": "ID eines Ursprungsdatenträgersnapshots zur Verwendung für die Duplizierung"
38233823
},
3824-
"ID of the object being tagged [required]": {
3825-
"other": "ID des Objekts, das mit Tags versehen wird [erforderlich]"
3824+
"ID of the object being tagged": {
3825+
"other": "ID des Objekts, das mit Tags versehen wird"
38263826
},
38273827
"IDENTIFIER": {
38283828
"other": "ID"
@@ -4097,8 +4097,8 @@
40974097
"Key Name": {
40984098
"other": "Schlüsselname"
40994099
},
4100-
"Key name of a tag type e.g. GUEST, HARDWARE. See slcli tags taggable output. [required]": {
4101-
"other": "Schlüsselname eines Tagtyps, z. B. GUEST, HARDWARE. Siehe 'slcli tags taggable'-Ausgabe. [erforderlich]"
4100+
"Key name of a tag type e.g. GUEST, HARDWARE. See slcli tags taggable output.": {
4101+
"other": "Schlüsselname eines Tagtyps, z. B. GUEST, HARDWARE. Siehe 'slcli tags taggable'-Ausgabe."
41024102
},
41034103
"Key name. It's only available in HEADER or COOKIE type": {
41044104
"other": "Schlüsselname. Nur im Typ HEADER oder COOKIE verfügbar."
@@ -7295,8 +7295,8 @@
72957295
"[TAG NAME]": {
72967296
"other": "[TAGNAME]"
72977297
},
7298-
"[required]": {
7299-
"other": "[erforderlich]"
7298+
"required": {
7299+
"other": "erforderlich"
73007300
},
73017301
"accepts at most {{.Limit}} arg(s), received {{.Args}}": {
73027302
"other": "akzeptiert höchstens {{.Limit}} Argument(e), empfangen {{.Args}}"

plugin/i18n/v2Resources/active.en-US.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,8 +1364,8 @@
13641364
"Comma separated list of tags, enclosed in quotes. 'tag1, tag2'": {
13651365
"other": "Comma separated list of tags, enclosed in quotes. 'tag1, tag2'"
13661366
},
1367-
"Comma seperated list of tags, enclosed in quotes. 'tag1,tag2' [required]": {
1368-
"other": "Comma seperated list of tags, enclosed in quotes. 'tag1,tag2' [required]"
1367+
"Comma seperated list of tags, enclosed in quotes. 'tag1,tag2'": {
1368+
"other": "Comma seperated list of tags, enclosed in quotes. 'tag1,tag2'"
13691369
},
13701370
"Company": {
13711371
"other": "Company"
@@ -3857,8 +3857,8 @@
38573857
"ID of an origin volume snapshot to use for duplication": {
38583858
"other": "ID of an origin volume snapshot to use for duplication"
38593859
},
3860-
"ID of the object being tagged [required]": {
3861-
"other": "ID of the object being tagged [required]"
3860+
"ID of the object being tagged": {
3861+
"other": "ID of the object being tagged"
38623862
},
38633863
"IDENTIFIER": {
38643864
"other": "IDENTIFIER"
@@ -4145,8 +4145,8 @@
41454145
"Key Name": {
41464146
"other": "Key Name"
41474147
},
4148-
"Key name of a tag type e.g. GUEST, HARDWARE. See slcli tags taggable output. [required]": {
4149-
"other": "Key name of a tag type e.g. GUEST, HARDWARE. See slcli tags taggable output. [required]"
4148+
"Key name of a tag type e.g. GUEST, HARDWARE. See slcli tags taggable output.": {
4149+
"other": "Key name of a tag type e.g. GUEST, HARDWARE. See slcli tags taggable output."
41504150
},
41514151
"Key name. It's only available in HEADER or COOKIE type": {
41524152
"other": "Key name. It's only available in HEADER or COOKIE type"
@@ -7412,8 +7412,8 @@
74127412
"[TAG NAME]": {
74137413
"other": "[TAG NAME]"
74147414
},
7415-
"[required]": {
7416-
"other": "[required]"
7415+
"required": {
7416+
"other": "required"
74177417
},
74187418
"accepts at most {{.Limit}} arg(s), received {{.Args}}": {
74197419
"other": "accepts at most {{.Limit}} arg(s), received {{.Args}}"

0 commit comments

Comments
 (0)