Skip to content

Commit 5e81725

Browse files
authored
Merge pull request labgrid-project#895 from JoshuaWatt/ssh-name-fix
client: Add missing name argument
2 parents 87b6652 + fa86069 commit 5e81725

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

labgrid/remote/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1695,24 +1695,28 @@ def main():
16951695

16961696
subparser = subparsers.add_parser('scp',
16971697
help="transfer file via scp")
1698+
subparser.add_argument('--name', '-n', help="optional resource name")
16981699
subparser.add_argument('src', help='source path (use :dir/file for remote side)')
16991700
subparser.add_argument('dst', help='destination path (use :dir/file for remote side)')
17001701
subparser.set_defaults(func=ClientSession.scp)
17011702

17021703
subparser = subparsers.add_parser('rsync',
17031704
help="transfer files via rsync")
1705+
subparser.add_argument('--name', '-n', help="optional resource name")
17041706
subparser.add_argument('src', help='source path (use :dir/file for remote side)')
17051707
subparser.add_argument('dst', help='destination path (use :dir/file for remote side)')
17061708
subparser.set_defaults(func=ClientSession.rsync)
17071709

17081710
subparser = subparsers.add_parser('sshfs',
17091711
help="mount via sshfs (blocking)")
1712+
subparser.add_argument('--name', '-n', help="optional resource name")
17101713
subparser.add_argument('path', help='remote path on the target')
17111714
subparser.add_argument('mountpoint', help='local path')
17121715
subparser.set_defaults(func=ClientSession.sshfs)
17131716

17141717
subparser = subparsers.add_parser('forward',
17151718
help="forward local port to remote target")
1719+
subparser.add_argument('--name', '-n', help="optional resource name")
17161720
subparser.add_argument("--local", "-L", metavar="[LOCAL:]REMOTE",
17171721
action=LocalPort,
17181722
help="Forward local port LOCAL to remote port REMOTE. If LOCAL is unspecified, an arbitrary port will be chosen")

0 commit comments

Comments
 (0)