[X2Go-Commits] [x2goclient] 54/94: pyhoca-cli: Fake SSH like login with additional [host] as positional argument.
git-admin at x2go.org
git-admin at x2go.org
Fri Dec 15 21:06:43 CET 2023
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to annotated tag 0.6.1.0
in repository x2goclient.
commit 0171816c2793862fd2a8abbac7ce1716ffed8470
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Tue Sep 18 11:49:23 2018 +0000
pyhoca-cli: Fake SSH like login with additional [host] as positional argument.
---
pyhoca-cli | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/pyhoca-cli b/pyhoca-cli
index 2a695933..60373fa5 100755
--- a/pyhoca-cli
+++ b/pyhoca-cli
@@ -267,6 +267,8 @@ Possible values for the --pack NX option are:
del opt['args']
p_group.add_argument(*args, **opt)
+ p.add_argument('host', nargs='?', default=None, help='host to connect to (as alternative to --server option)')
+
a = p.parse_args()
if a.debug:
@@ -294,6 +296,8 @@ Possible values for the --pack NX option are:
if not (a.session_profile or a.list_profiles):
+ if a.host and not a.server: a.server = a.host
+
# the --server (or --session-profile) option is required for most operations
if not a.server and not a.from_stdin:
runtime_error ("argument --server (or --session-profile) is required", parser=p, exitcode=1)
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2goclient.git
More information about the x2go-commits
mailing list