|
@@ -77,9 +77,9 @@ default_config = {'Global': {'umask': '0100', 'colors': 'yes',
|
|
|
|
|
|
|
|
|
def parser_options(formatter_class=argparse.HelpFormatter):
|
|
|
- parser = argparse.ArgumentParser(description=('pwman3 - a command line '
|
|
|
- 'password manager.'),
|
|
|
- formatter_class=formatter_class)
|
|
|
+ parser = argparse.ArgumentParser(prog=appname,
|
|
|
+ description=description,
|
|
|
+ formatter_class=formatter_class)
|
|
|
parser.add_argument('-c', '--config', dest='cfile',
|
|
|
default=os.path.expanduser("~/.pwman/config"),
|
|
|
help='cofiguration file to read')
|
|
@@ -146,7 +146,6 @@ def set_umask(config):
|
|
|
sys.exit(2)
|
|
|
|
|
|
|
|
|
-
|
|
|
def set_db(args):
|
|
|
if args.dbase:
|
|
|
config.set_value("Database", "filename", args.dbase)
|
|
@@ -158,6 +157,7 @@ def set_algorithm(args, config):
|
|
|
config.set_value("Encryption", "algorithm", args.algo)
|
|
|
config.set_value("Global", "save", "False")
|
|
|
|
|
|
+
|
|
|
def get_conf_options(args, OSX):
|
|
|
|
|
|
config = get_conf(args)
|