opnk.1 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. .Dd August 27, 2023
  2. .Dt OPNK 1
  3. .Os
  4. .
  5. .Sh NAME
  6. .Nm opnk
  7. .Nd universal open (like a punk) for offpunk
  8. .
  9. .Sh SYNOPSIS
  10. .Nm
  11. .Op Ar INPUT ...
  12. .Nm
  13. .Fl h | \-help
  14. .
  15. .Sh DESCRIPTION
  16. Opnk is the "universal open (like a punk)".
  17. Opnk is a tool that will try to render any file or URL in the terminal,
  18. using
  19. .Xr netcache 1
  20. and
  21. .Xr ansicat 1 ,
  22. and put them in
  23. .Xr less 1 .
  24. If that doesn’t work,
  25. it will fallback to
  26. .Xr xdg-open 1 .
  27. .Pp
  28. .Xr Offpunk 1
  29. is a command-line browser and feed reader dedicated to browsing the Web,
  30. Gemini, Gopher and Spartan.
  31. .Ss Positional arguments
  32. .Bl -tag -width Ds -offset indent
  33. .It Ar INPUT
  34. path to the file or URL to open.
  35. .El
  36. .Ss Keyword arguments
  37. .Bl -tag -width Ds -offset indent
  38. .It Fl h , \-help
  39. Show a help message and exit
  40. .It Fl \-mode Ar MODE
  41. MODE to use to render to choose between normal (default), full or source
  42. .It Fl \-cache-validity CACHE_VALIDITY
  43. Maximum age (in second) of the cached version before redownloading a new version.
  44. .El
  45. .
  46. .Sh EXIT STATUS
  47. .Ex -std
  48. .
  49. .Sh SEE ALSO
  50. .Xr ansicat 1 ,
  51. .Xr migrate-offpunk-cache 1 ,
  52. .Xr netcache 1 ,
  53. .Xr offpunk 1 ,
  54. .Lk https://sr.ht/~lioploum/offpunk/
  55. .
  56. .Sh AUTHORS
  57. .An Lionel Dricot (Ploum) Aq Mt offpunk2 at ploum.eu