@@ -10,18 +10,18 @@ def run():
1010
1111 parser_gen = sp .add_parser ("generate" , help = "Generate key" )
1212 parser_gen .add_argument ("-l" , "--length" , type = int , default = 6 , help = "Length of the key" )
13- parser_gen .add_argument ("-i " , "--name" , default = "Anonymous" , help = "Identifier for this key" )
13+ parser_gen .add_argument ("-n " , "--name" , default = "Anonymous" , help = "Identifier for this key" )
1414 parser_gen .add_argument ("-t" , "--tags" , nargs = "+" , default = [], help = "Mandatory tag for this key" )
1515 parser_gen .add_argument ("--admin" , action = "store_true" , help = "Set the account to admin" )
1616
1717 parser_reg = sp .add_parser ("register" , help = "Register key" )
1818 parser_reg .add_argument ("key" , help = "Key" )
19- parser_reg .add_argument ("-i " , "--name" , default = "Anonymous" , help = "Identifier for this key" )
19+ parser_reg .add_argument ("-n " , "--name" , default = "Anonymous" , help = "Identifier for this key" )
2020 parser_reg .add_argument ("-t" , "--tags" , nargs = "+" , default = [], help = "Mandatory tag for this key" )
2121 parser_reg .add_argument ("--admin" , action = "store_true" , help = "Set the account to administrator" )
2222
2323 parser_del = sp .add_parser ("delete" , help = "Delete key" )
24- parser_del .add_argument ("-i " , "--name" , help = "Keys with selected name will be deleted" )
24+ parser_del .add_argument ("-n " , "--name" , help = "Keys with selected name will be deleted" )
2525 parser_del .add_argument ("-k" , "--key" , help = "Key to delete" )
2626 parser_del .add_argument ("--hash_key" , help = "Hash key to delete" )
2727
@@ -69,8 +69,7 @@ def run():
6969 elif args .subparser == "list" :
7070 accounts = getAllAccounts ()
7171 if args .hashkey is not None :
72- acc : Account
73- acc = accounts [args .hashkey ]
72+ acc : Account = accounts [args .hashkey ]
7473 print (acc .detailString ())
7574 else :
7675 for acc in accounts .values ():
0 commit comments