Skip to content

Commit 79b9e02

Browse files
committed
refactor: consolidate duplicate constants
1 parent ec94916 commit 79b9e02

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

‎cli/cmd/consts.go‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ const (
44
ArgNameUserId = "uid"
55
ArgNameNewPassword = "newpassword"
66
ArgNameToken = "token"
7-
ArgNameTokenLastTime = "lastlogin"
87
ArgNameUsername = "username"
98
ArgNamePassword = "password"
109
ArgNameHost = "host"

‎cli/cmd/root.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func init() {
4747
cli.Log = logger.NewLogger()
4848

4949
rootCmd.PersistentFlags().Uint32Var(&token, ArgNameToken, 0x0, "Valid authentication token")
50-
rootCmd.PersistentFlags().Int64Var(&lastLoginTime, ArgNameTokenLastTime, 0x0, "Valid authentication token timestamp")
50+
rootCmd.PersistentFlags().Int64Var(&lastLoginTime, ArgNameLastLoginTimeStamp, 0x0, "Valid authentication token timestamp")
5151
rootCmd.PersistentFlags().StringVar(&username, ArgNameUsername, "", "Valid username")
5252
rootCmd.PersistentFlags().StringVar(&password, ArgNamePassword, "", "Valid password belongs to the given username")
5353
rootCmd.PersistentFlags().StringVar(&host, ArgNameHost, "", "IP or host name or the Hörmann BiSecure gateway")

0 commit comments

Comments
 (0)