Skip to content

Commit b80d28c

Browse files
Paolo Calaopolldo
authored andcommitted
Update filter command
1 parent ad6b8c3 commit b80d28c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cli/device/list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ func initListCommand() *cobra.Command {
3939
Long: "List devices on Arduino IoT Cloud",
4040
Run: runListCommand,
4141
}
42-
// list only the devices that have all the passed tags
4342
listCommand.Flags().StringToStringVar(
4443
&listFlags.tags,
4544
"tags",
4645
nil,
47-
"List of comma-separated tags. A tag has this format: <key>=<value>",
46+
"Comma-separated list of tags with format <key>=<value>.\n"+
47+
"List only devices that match the provided tags.",
4848
)
4949
return listCommand
5050
}

cli/thing/list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ func initListCommand() *cobra.Command {
4848
// list only the thing associated to the passed device id
4949
listCommand.Flags().StringVarP(&listFlags.deviceID, "device-id", "d", "", "ID of Device associated to the thing to be retrieved")
5050
listCommand.Flags().BoolVarP(&listFlags.variables, "show-variables", "s", false, "Show thing variables")
51-
// list only the things that have all the passed tags
5251
listCommand.Flags().StringToStringVar(
5352
&listFlags.tags,
5453
"tags",
5554
nil,
56-
"List of comma-separated tags. A tag has this format: <key>=<value>",
55+
"Comma-separated list of tags with format <key>=<value>.\n"+
56+
"List only things that match the provided tags.",
5757
)
5858
return listCommand
5959
}

0 commit comments

Comments
 (0)