VOL-3270 - make the device type a required arg
Change-Id: I1bf7208344b791f12a0eb7274d1cfeaad9d92c8f
diff --git a/internal/pkg/commands/devices.go b/internal/pkg/commands/devices.go
index 85cba8b..4d93acf 100644
--- a/internal/pkg/commands/devices.go
+++ b/internal/pkg/commands/devices.go
@@ -52,7 +52,7 @@
}
type DeviceCreate struct {
- DeviceType string `short:"t" long:"devicetype" default:"" description:"Device type"`
+ DeviceType string `short:"t" required:"true" long:"devicetype" description:"Device type"`
MACAddress string `short:"m" long:"macaddress" default:"" description:"MAC Address"`
IPAddress string `short:"i" long:"ipaddress" default:"" description:"IP Address"`
HostAndPort string `short:"H" long:"hostandport" default:"" description:"Host and port"`