diff options
author | Kenny Woodson <kwoodson@redhat.com> | 2015-02-11 16:11:18 -0500 |
---|---|---|
committer | Kenny Woodson <kwoodson@redhat.com> | 2015-02-11 16:11:18 -0500 |
commit | cf65db9573ec99b0f4e2b599b6f158785602c230 (patch) | |
tree | 3d648556b45d4209dea96bdbc1b9c92986e129e1 /bin/oscp | |
parent | 603c79412df1b141230ec55f032ad086ada37097 (diff) | |
download | openshift-cf65db9573ec99b0f4e2b599b6f158785602c230.tar.gz openshift-cf65db9573ec99b0f4e2b599b6f158785602c230.tar.bz2 openshift-cf65db9573ec99b0f4e2b599b6f158785602c230.tar.xz openshift-cf65db9573ec99b0f4e2b599b6f158785602c230.zip |
Updated oscp and ossh.
Diffstat (limited to 'bin/oscp')
-rwxr-xr-x | bin/oscp | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -54,8 +54,8 @@ class Oscp(object): help='options to pass to SSH.\n \ "-oPort=22,TCPKeepAlive=yes"') - parser.add_argument('src', default='') - parser.add_argument('dest',default='') + parser.add_argument('src', nargs='?', default='') + parser.add_argument('dest',nargs='?', default='') self.args = parser.parse_args() self.parser = parser @@ -89,9 +89,6 @@ class Oscp(object): else: self.host = search.groups()[0] self.path = search.groups()[1] - else: - print "Could not determine user and hostname." - return if self.args.env: self.env = self.args.env |