|
@@ -88,7 +88,8 @@ def parser_options(formatter_class=argparse.HelpFormatter):
|
|
default=os.path.expanduser("~/.pwman/config"),
|
|
default=os.path.expanduser("~/.pwman/config"),
|
|
help='cofiguration file to read')
|
|
help='cofiguration file to read')
|
|
parser.add_argument('-d', '--database', dest='dbase')
|
|
parser.add_argument('-d', '--database', dest='dbase')
|
|
- parser.add_argument('-i', '--import', dest='import_file', type=file)
|
|
|
|
|
|
+ parser.add_argument('-i', '--import', dest='import_file',
|
|
|
|
+ type=argparse.FileType())
|
|
return parser
|
|
return parser
|
|
|
|
|
|
|
|
|