Allow matching on hostname and username

This commit is contained in:
Kovid Goyal
2022-03-04 12:42:31 +05:30
parent fe27ee2d79
commit e797ba4800
5 changed files with 40 additions and 9 deletions

View File

@@ -27,6 +27,7 @@ opt('hostname', '*', option_type='hostname',
long_text='''
The hostname the following options apply to. A glob pattern to match multiple
hosts can be used. Multiple hostnames can also be specified separated by spaces.
The hostname can include an optional username in the form :code:`user@host`.
When not specified options apply to all hosts, until the
first hostname specification is found. Note that the hostname this matches
against is the hostname used by the remote computer, not the name you pass