This repository has been archived on 2022-01-23. You can view files and clone it, but cannot push or open issues or pull requests.
2020-04-03 11:44:34 -04:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
|
|
|
import vaultpass
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
rawargs = vaultpass.args.parseArgs()
|
|
|
|
args = rawargs.parse_args()
|
|
|
|
if not args.oper:
|
2020-04-03 18:27:43 -04:00
|
|
|
rawargs.print_help()
|
|
|
|
return(None)
|
|
|
|
if args.oper == 'help':
|
|
|
|
rawargs.print_help()
|
|
|
|
return(None)
|
2020-04-04 07:12:28 -04:00
|
|
|
if args.oper == 'version':
|
|
|
|
print('{0} {1}'.format(vaultpass.constants.NAME,
|
|
|
|
vaultpass.constants.VERSION))
|
2020-04-16 01:20:13 -04:00
|
|
|
args.initialize = (True if args.oper == 'init' else False)
|
|
|
|
args.verify_cfg = (True if args.oper == 'verify' else False)
|
|
|
|
vp = vaultpass.VaultPass(**vars(args))
|
2020-04-03 11:44:34 -04:00
|
|
|
return(None)
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
main()
|