44import traceback
55import signal
66
7- from passmanager . cli import parse_args
8- from passmanager . manager import create_profile
9- from passmanager . password import generate_password
10- from passmanager . clipboard import copy , get_system_copy_command
7+ from cli import parse_args
8+ from manager import create_profile
9+ from password import generate_password
10+ from clipboard import copy , get_system_copy_command
1111
1212signal .signal (signal .SIGINT , lambda s , f : sys .exit (0 ))
1313
@@ -16,22 +16,21 @@ def main(args=sys.argv[1:]):
1616 args = parse_args (args )
1717 if args .clipboard and not get_system_copy_command ():
1818 print (
19- "ERROR To use the option -c (--copy) you need pbcopy on OSX, "
20- + "xsel, xclip, or wl-clipboard on Linux, and clip on Windows"
19+ "ERROR To use the option -c (--copy) "
2120 )
2221 sys .exit (3 )
2322
2423 if args .prompt :
2524 args .site = getpass .getpass ("Site: " )
2625 args .login = getpass .getpass ("Login: " )
2726 if not args .site :
28- print ("ERROR argument SITE is required but was not provided. " )
27+ print ("ERROR : SITE is not given " )
2928 sys .exit (4 )
3029
3130 if not args .master_password :
3231 args .master_password = getpass .getpass ("Master Password: " )
3332 if not args .master_password :
34- print ("ERROR argument MASTER_PASSWORD is required but was not provided " )
33+ print ("ERROR : MASTER_PASSWORD is required " )
3534 sys .exit (5 )
3635
3736 profile , master_password = create_profile (args )
@@ -42,14 +41,11 @@ def main(args=sys.argv[1:]):
4241 copy (generated_password )
4342 print ("Copied to clipboard" )
4443 except Exception as e :
45- print ("Copy failed, we are sorry" )
46- print (
"Can you send us an email at [email protected] \n " )
47- print ("-" * 80 )
48- print ("Object: [passmanager][cli] Copy issue on %s" % platform .system ())
49- print ("Hello," )
50- print ("I got an issue with passmanager cli software.\n " )
44+ print ("@" * 80 )
45+ print ("Copy issue occured on %s" % platform .system ())
46+ print (
"Can you send us an email at [email protected] \n " )
5147 traceback .print_exc ()
52- print ("- " * 80 )
48+ print ("_ " * 80 )
5349 else :
5450 print (generated_password )
5551
0 commit comments