Skip to content

Commit

Permalink
docs: fix missing create device arg --userdata-file
Browse files Browse the repository at this point in the history
Signed-off-by: Marques Johansson <[email protected]>
  • Loading branch information
displague committed Sep 28, 2020
1 parent 299c3fc commit a919864
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/create_device.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ func init() {

createDeviceCmd.Flags().StringVarP(&storage, "storage", "s", "", "UUID of the storage")
createDeviceCmd.Flags().StringVarP(&ipxescripturl, "ipxe-script-url", "i", "", "URL to the iPXE script")
createDeviceCmd.Flags().StringVarP(&userdata, "userdata", "u", "", "User data")
createDeviceCmd.Flags().StringVarP(&userdataFile, "userdata-file", "", "", "Filename to read Userdata from")
createDeviceCmd.Flags().StringVarP(&userdata, "userdata", "u", "", "Userdata for device initialization (can not be used with --userdata-file)")
createDeviceCmd.Flags().StringVarP(&userdataFile, "userdata-file", "", "", "Path to a userdata file for device initialization (can not be used with --userdata)")
createDeviceCmd.Flags().StringVarP(&customdata, "customdata", "c", "", "Custom data")
createDeviceCmd.Flags().StringSliceVarP(&tags, "tags", "t", []string{}, `Tags for the device: --tags="tag1,tag2"`)
createDeviceCmd.Flags().IntVarP(&publicIPv4SubnetSize, "public-ipv4-subnet-size", "v", 0, "Size of the public IPv4 subnet")
Expand Down
1 change: 1 addition & 0 deletions docs/packet_device_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ packet device create [flags]
-t, --tags strings Tags for the device: --tags="tag1,tag2"
-T, --termination-time string Device termination time: --termination-time="15:04:05"
-u, --userdata string User data
--userdata-file string Filename to read Userdata from
```

### Options inherited from parent commands
Expand Down

0 comments on commit a919864

Please sign in to comment.