[X2Go-Commits] [pyhoca-cli] 06/11: pyhoca-cli: Fake SSH like login with additional [host] as positional argument.
git-admin at x2go.org
git-admin at x2go.org
Tue Sep 18 18:45:47 CEST 2018
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository pyhoca-cli.
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 2a69593..60373fa 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/pyhoca-cli.git
More information about the x2go-commits
mailing list