Hello,
while documenting nsh and its features,
I wanted to  display the command switches of telnet command inside the
manual page for nsh,
I would like to display , the contents of the
telnet , name synopsis and description sections from the telnet
manpage in the nsh man page without copying the contents of the man
page. (so that the command line switches / arguments are up to date
for a given OpenBSD version

for now i have done telnet client documentation in nsh as follows
.Tg telnet
.Ic telnet
.Op -a
.Op -b host-alias
.Op -l user-name
.Ar host-name
.Op Ar port
.Pp
Open a telnet client session to the remote host host-name.
Where host-name can be a name or IP address of the remote host.
port is the TCP port on the remote host which you wish to connect and port
can be within the range 0-65535.
The
.Ic -a
switch will attempt an automatic login if the setup permits it.
The
.Ic -b host-alias
will bind the source IP telnet client session to a specific ip address alias
rather than the primary ip address on a given interface.
See
.Xr telnet 1
man page for a comprehensive list of telnet command options.
.Bd -literal -offset indent
nsh(p)/!man telnet
.Ed

any thoughts / advice welcome

-- 
Kindest regards,
Tom Smyth.

Reply via email to