Skip to content

Commit 0ad8eeb

Browse files
committed
Set initial value of slice flag to nil
1 parent 2dc8e6a commit 0ad8eeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/thing/list.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func initListCommand() *cobra.Command {
4444
Run: runListCommand,
4545
}
4646
// list only the things corresponding to the passed ids
47-
listCommand.Flags().StringSliceVarP(&listFlags.ids, "ids", "i", []string{}, "List of thing IDs to be retrieved")
47+
listCommand.Flags().StringSliceVarP(&listFlags.ids, "ids", "i", nil, "List of thing IDs to be retrieved")
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")

0 commit comments

Comments
 (0)