|
|
@@ -23,15 +23,19 @@ def main(args=sys.argv[1:]): |
|
|
|
sys.exit(3) |
|
|
|
|
|
|
|
if args.prompt: |
|
|
|
args.site = getpass.getpass("Site: ") |
|
|
|
args.login = getpass.getpass("Login: ") |
|
|
|
if not args.site: |
|
|
|
args.site = getpass.getpass("Site: ") |
|
|
|
if not args.login: |
|
|
|
args.login = getpass.getpass("Login: ") |
|
|
|
|
|
|
|
if not args.master_password: |
|
|
|
args.master_password = getpass.getpass("Master Password: ") |
|
|
|
|
|
|
|
if not args.site: |
|
|
|
print("ERROR argument SITE is required but was not provided.") |
|
|
|
sys.exit(4) |
|
|
|
|
|
|
|
if not args.master_password: |
|
|
|
args.master_password = getpass.getpass("Master Password: ") |
|
|
|
if not args.master_password: |
|
|
|
print("ERROR argument MASTER_PASSWORD is required but was not provided") |
|
|
|
sys.exit(5) |
|
|
|
|
|
|
|