Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. .Dd $Mdocdate: November Fri 28 2014 $
  2. .Dt CLI2MAN 1 URM
  3. .Os UNIX
  4. .Sh NAME
  5. .Nm cli2man
  6. .Nd Use the help message of a command to create a manpage.
  7. .Sh SYNOPSIS
  8. .Nm
  9. ( <command> | -i FILE | --stdin ) [options] [--option-section NAME ...] [--info-section NAME ...] [--set-order SECTIONS] [--gzip] ) | ( --print-order [--set-order SECTIONS] ) | ( --version
  10. .Sh DESCRIPTION
  11. Use the help message of a command to create a manpage.
  12. .Sh OPTIONS
  13. .Bl -tag -width Ds
  14. .It Fl h , Fl -help
  15. show this help message and exit
  16. .It Fl o Ar FILE , Fl -output Ar FILE
  17. write to file instead of stdout. when FILE is set to "auto" the format is: command.section(.gz)
  18. .It Fl i Ar FILE , Fl -input Ar FILE
  19. read CLI-help input from file
  20. .It Fl -stdin
  21. read CLI-help input from stdin
  22. .It Fl -info-section Ar NAME
  23. parse non-option sections
  24. .It Fl -option-section Ar NAME
  25. parse option sections other than "Options:"
  26. .It Fl m , Fl -open-in-man
  27. open the output in man
  28. .It Fl s Ar NUM , Fl -section Ar NUM
  29. section number for manual page
  30. .It Fl -volume Ar VOLUME
  31. volume title for manual page
  32. .It Fl I Ar FILE , Fl -include Ar FILE
  33. include material from FILE
  34. .It Fl -gzip
  35. compress file output
  36. .It Fl -set-order Ar SECTIONS
  37. comma separated list of sections
  38. .It Fl -print-order
  39. prints section order default order if non is set by user
  40. .It Fl v , Fl -version
  41. display version information
  42. .El
  43. .Pp
  44.  
  45. .Sh TEST
  46. .Pp
  47. .Bl -tag -width Ds
  48. .It the first item
  49.  
  50. Text belonging to the first item
  51. .It the second item
  52.  
  53. Text belonging to the second
  54. .El
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement