|
|
|
@ -15,7 +15,7 @@ if __name__ == "__main__": |
|
|
|
parser.add_argument('-p','--pre-script', help= 'script to run before connecting(script must be in config dir)') |
|
|
|
parser.add_argument('--ssh-opt',help='pass options to ssh command, use "+" instead of "-"') |
|
|
|
parser.add_argument('name',help='name of config file to use (sans .cfg)') |
|
|
|
parser.add_argument('cmd',nargs = '*',help = 'command to be run') |
|
|
|
parser.add_argument('arg',nargs = '*',help = 'command to be run') |
|
|
|
args = parser.parse_args() |
|
|
|
if args.pre_script: |
|
|
|
pre = '{HOME}/.ssh/config/{}'.format(args.pre_script,HOME=HOME) |
|
|
|
|