mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-08-28 04:46:34 -04:00
Addressed line-length warnings
This commit is contained in:
@@ -530,8 +530,8 @@ if __name__ == "__main__":
|
||||
except KeyboardInterrupt:
|
||||
print('\n')
|
||||
s_exit()
|
||||
elif argument == 'help' or argument == '--help' or argument == '-h' or argument == 'license' or argument == 'version' \
|
||||
or argument == '-v' or argument == 'add' or argument == 'edit' or argument == 'copy':
|
||||
elif argument == 'help' or argument == '--help' or argument == '-h' or argument == 'license' or \
|
||||
argument == 'version' or argument == '-v' or argument == 'add' or argument == 'edit' or argument == 'copy':
|
||||
print_info()
|
||||
elif argument == 'add note' or argument == 'add -n' or argument == 'add password' or argument == 'add -p':
|
||||
try:
|
||||
@@ -551,8 +551,8 @@ if __name__ == "__main__":
|
||||
except KeyboardInterrupt:
|
||||
print('\n')
|
||||
s_exit()
|
||||
elif argument == 'edit username' or argument == 'edit -u' or argument == 'edit password' or argument == 'edit -p' or \
|
||||
argument == 'edit url' or argument == 'edit -l' or argument == 'edit note' or argument == 'edit -n':
|
||||
elif argument == 'edit username' or argument == 'edit -u' or argument == 'edit password' or argument == 'edit -p' \
|
||||
or argument == 'edit url' or argument == 'edit -l' or argument == 'edit note' or argument == 'edit -n':
|
||||
try:
|
||||
edit()
|
||||
except KeyboardInterrupt:
|
||||
@@ -564,8 +564,8 @@ if __name__ == "__main__":
|
||||
except KeyboardInterrupt:
|
||||
print('\n')
|
||||
s_exit()
|
||||
elif argument == 'copy username' or argument == 'copy -u' or argument == 'copy password' or argument == 'copy -p' or \
|
||||
argument == 'copy url' or argument == 'copy -l' or argument == 'copy note' or argument == 'copy -n':
|
||||
elif argument == 'copy username' or argument == 'copy -u' or argument == 'copy password' or argument == 'copy -p' \
|
||||
or argument == 'copy url' or argument == 'copy -l' or argument == 'copy note' or argument == 'copy -n':
|
||||
try:
|
||||
copy_data()
|
||||
except KeyboardInterrupt:
|
||||
@@ -585,10 +585,9 @@ if __name__ == "__main__":
|
||||
s_exit()
|
||||
|
||||
# sync at end of program if any changes were made
|
||||
if argument != '' and argument != 'help' and argument != '--help' and argument != '-h' and argument != 'license' and \
|
||||
argument != 'add' and argument != 'sync' and argument != 'edit' and argument != 'copy username' and argument \
|
||||
!= 'copy -u' and argument != 'copy password' and argument != 'copy -p' and argument != 'copy url' and argument \
|
||||
!= 'copy -l' and argument != 'copy note' and argument != 'copy -n' and argument != 'copy' and argument \
|
||||
!= 'version' and argument != '-v' and error == 0 and \
|
||||
argument.startswith('/') is False:
|
||||
if argument != '' and argument != 'help' and argument != '--help' and argument != '-h' and argument != 'license' \
|
||||
and argument != 'add' and argument != 'sync' and argument != 'edit' and argument != 'copy username' and \
|
||||
argument != 'copy -u' and argument != 'copy password' and argument != 'copy -p' and argument != 'copy url' \
|
||||
and argument != 'copy -l' and argument != 'copy note' and argument != 'copy -n' and argument != 'copy' and \
|
||||
argument != 'version' and argument != '-v' and error == 0 and argument.startswith('/') is False:
|
||||
sync()
|
||||
|
||||
Reference in New Issue
Block a user