@@ -61,6 +61,7 @@ def _save(self):
6161 self .fp .seek (0 )
6262 self .fp .truncate ()
6363 pickle .dump (self .secrets , self .fp )
64+ self .fp .flush ()
6465 except IOError as e :
6566 print ("ERROR: " + str (e ), file = sys .stderr )
6667
@@ -92,14 +93,14 @@ def lookup(self, label: str, **kw):
9293subparsers = parser .add_subparsers (dest = 'command' , required = True )
9394
9495parser_clear = subparsers .add_parser (
95- "clear" , help = "Remove passward associated with given key value pairs" )
96+ "clear" , help = "Remove password associated with given key value pairs" )
9697parser_clear .add_argument ("-l" , "--label" , action = 'store' , required = True ,
9798 help = "label for given key value pairs" )
9899parser_clear .add_argument ("kw" , nargs = '*' ,
99100 help = "key value pairs" )
100101
101102parser_store = subparsers .add_parser (
102- "store" , help = "Store passward for given key value pairs" )
103+ "store" , help = "Store password for given key value pairs" )
103104parser_store .add_argument ("-l" , "--label" , action = 'store' , required = True ,
104105 help = "label for given key value pairs" )
105106parser_store .add_argument ("-p" , "--password" , action = 'store' , required = True ,
@@ -108,7 +109,7 @@ def lookup(self, label: str, **kw):
108109 help = "key value pairs" )
109110
110111parser_lookup = subparsers .add_parser (
111- "lookup" , help = "Retrieve passward associated with given key value pairs" )
112+ "lookup" , help = "Retrieve password associated with given key value pairs" )
112113parser_lookup .add_argument ("-l" , "--label" , action = 'store' , required = True ,
113114 help = "label for given key value pairs" )
114115parser_lookup .add_argument ("kw" , nargs = '*' ,
0 commit comments