From c333a4ad40294f792ca9974bf137fd06e69b003c Mon Sep 17 00:00:00 2001 From: Andy Doan Date: Thu, 30 Apr 2020 14:04:07 -0500 Subject: [PATCH] device-list: Support "-f" option -f is used for "factory" everywhere else in this tool. Signed-off-by: Andy Doan --- subcommands/devices/list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subcommands/devices/list.go b/subcommands/devices/list.go index 03ff01f7..91624eea 100644 --- a/subcommands/devices/list.go +++ b/subcommands/devices/list.go @@ -32,7 +32,7 @@ func init() { listCmd.Flags().BoolVarP(&deviceNoShared, "just-mine", "", false, "Only include devices owned by you") listCmd.Flags().BoolVarP(&deviceNoOwner, "skip-owner", "", false, "Do not include owner name when lising. (command will run faster)") listCmd.Flags().StringVarP(&deviceByTag, "by-tag", "", "", "Only list devices configured with the given tag") - listCmd.Flags().StringVarP(&deviceByFactory, "by-factory", "", "", "Only list devices belonging to this factory") + listCmd.Flags().StringVarP(&deviceByFactory, "by-factory", "f", "", "Only list devices belonging to this factory") listCmd.Flags().IntVarP(&deviceInactiveHours, "offline-threshold", "", 4, "List the device as 'OFFLINE' if not seen in the last X hours") }