$ ./a.sh -v -L wfrge
Would get:
scp -P22334 wfrge@81.1.210.123:/opt/scripts/db/.backup
To:
/vagrant/db/.backup
$ ./a.sh -v 1 -L wfrge
SSH login is required option.
For help invoke with -? or --help
The definitions of the options is as the following:
optparse.define short=L long=ssh-login desc="The login to use for sftp/scp connection" variable=ssh_login
optparse.define short=v long=verbose desc="" desc="Verbose mode." variable=verbose value=1 default=0
Here's an example:
The definitions of the options is as the following:
Works same way if long option name specified.