add manpage cmd
This commit is contained in:
parent
7b7dc9d778
commit
3a86d74bce
1 changed files with 7 additions and 0 deletions
|
|
@ -60,6 +60,7 @@ func main() {
|
|||
|
||||
parser := flags.NewNamedParser("sshpiperd", flags.Default)
|
||||
parser.SubcommandsOptional = true
|
||||
parser.LongDescription = "SSH Piper works as a proxy-like ware, and route connections by username, src ip , etc. Please see <https://github.com/tg123/sshpiper> for more information"
|
||||
|
||||
// version
|
||||
addSubCommand(parser, "version", "show version", func(args []string) error {
|
||||
|
|
@ -78,6 +79,12 @@ func main() {
|
|||
return nil
|
||||
})
|
||||
|
||||
// manpage
|
||||
addSubCommand(parser, "manpage", "write man page to stdout", func(args []string) error {
|
||||
parser.WriteManPage(os.Stdout)
|
||||
return nil
|
||||
})
|
||||
|
||||
config := &struct {
|
||||
piperdConfig
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue