aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2023-07-12 09:43:25 +1200
committerTom Ryder <tom@sanctum.geek.nz>2023-07-12 12:42:16 +1200
commit582c4a7c680dd0068ab9272aaa001c474b7cd5c8 (patch)
tree5736f5ea264f85efa418c5b46cbdb1291cd473d5
parentUse .py extension rather than .py3 to allow import (diff)
downloadssh_negotiate_term-582c4a7c680dd0068ab9272aaa001c474b7cd5c8.tar.gz
ssh_negotiate_term-582c4a7c680dd0068ab9272aaa001c474b7cd5c8.zip
Correct handling of SSH remote command
-rw-r--r--ssh_negotiate_term.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ssh_negotiate_term.py b/ssh_negotiate_term.py
index 3c99613..e79bfa7 100644
--- a/ssh_negotiate_term.py
+++ b/ssh_negotiate_term.py
@@ -99,6 +99,7 @@ class SSHNegotiateTerm():
for letter in self.SSH_OPTIONS_ARGUMENTS:
parser.add_argument('-' + letter)
parser.add_argument('hostname')
+ parser.add_argument('command', nargs='?')
# Don't exit if we can't get the hostname, as ArgumentParser does by
# default; instead, just give up on the idea of downgrading
try: