mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-09-02 23:27:17 -04:00
Allow some arguments when running as server
This commit is contained in:
+4
-2
@@ -683,8 +683,10 @@ if __name__ == "__main__":
|
|||||||
ssh_error = int(open(path.expanduser('~/.config/sshyp/ssh-error')).read().strip())
|
ssh_error = int(open(path.expanduser('~/.config/sshyp/ssh-error')).read().strip())
|
||||||
if ssh_error != 0:
|
if ssh_error != 0:
|
||||||
ssh_error = copy_name_check(port, username_ssh, ip, client_device_name)
|
ssh_error = copy_name_check(port, username_ssh, ip, client_device_name)
|
||||||
else:
|
elif argument_list[1] != "help" and argument_list[1] != "--help" and argument_list[1] != "-h" and \
|
||||||
print('running as server, option disabled')
|
argument_list[1] != "license" and argument_list[1] != "version" and argument_list[1] != "-v":
|
||||||
|
print(f"\n\u001b[38;5;9merror: invalid server argument - run 'sshyp help' to "
|
||||||
|
f"list usable commands\u001b[0m\n")
|
||||||
s_exit(0)
|
s_exit(0)
|
||||||
except (FileNotFoundError, IndexError):
|
except (FileNotFoundError, IndexError):
|
||||||
if device_type.lower() != 's':
|
if device_type.lower() != 's':
|
||||||
|
|||||||
Reference in New Issue
Block a user