diff --git a/cmd/crowdsec-cli/lapi.go b/cmd/crowdsec-cli/lapi.go index a74a748b9..fc0dfe2eb 100644 --- a/cmd/crowdsec-cli/lapi.go +++ b/cmd/crowdsec-cli/lapi.go @@ -115,7 +115,7 @@ Keep in mind the machine needs to be validated by an administrator on LAPI side } cmdLapiRegister.Flags().StringVarP(&apiURL, "url", "u", "", "URL of the API (ie. http://127.0.0.1)") cmdLapiRegister.Flags().StringVarP(&outputFile, "file", "f", "", "output file destination") - cmdLapiRegister.Flags().StringVar(&lapiUser, "username", "", "output file destination") + cmdLapiRegister.Flags().StringVar(&lapiUser, "machine", "", "output file destination") cmdLapi.AddCommand(cmdLapiRegister) var cmdLapiStatus = &cobra.Command{