summaryrefslogtreecommitdiffstats
path: root/bin/oscp
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2015-02-11 16:11:18 -0500
committerKenny Woodson <kwoodson@redhat.com>2015-02-11 16:11:18 -0500
commitcf65db9573ec99b0f4e2b599b6f158785602c230 (patch)
tree3d648556b45d4209dea96bdbc1b9c92986e129e1 /bin/oscp
parent603c79412df1b141230ec55f032ad086ada37097 (diff)
downloadopenshift-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-xbin/oscp7
1 files changed, 2 insertions, 5 deletions
diff --git a/bin/oscp b/bin/oscp
index 463dadaef..385e36732 100755
--- a/bin/oscp
+++ b/bin/oscp
@@ -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