25 lines
532 B
Python
Executable File
25 lines
532 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
import vaultpass
|
|
|
|
|
|
def main():
|
|
rawargs = vaultpass.args.parseArgs()
|
|
args = rawargs.parse_args()
|
|
if not args.oper:
|
|
rawargs.print_help()
|
|
return(None)
|
|
if args.oper == 'help':
|
|
rawargs.print_help()
|
|
return(None)
|
|
if args.oper == 'version':
|
|
print('{0} {1}'.format(vaultpass.constants.NAME,
|
|
vaultpass.constants.VERSION))
|
|
import pprint
|
|
pprint.pprint(vars(args))
|
|
return(None)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|