usage.sh 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. get_usage() {
  2. cat 2>&1 << EOS
  3. Usage: fenrisg <command>
  4. fenrisg help
  5. fenrisg version
  6. fenrisg rss
  7. <input_directory>
  8. <absolute_path>
  9. <output_file>
  10. <name>
  11. [max_entries]
  12. fenrisg sitemap
  13. <relative_path_input_directory>
  14. <relative_path_to_template>
  15. <output_file>
  16. <sitemap_offset_from_root>
  17. fenrisg <source-file>
  18. <relative_path_to_content>
  19. <relative_path_to_template>
  20. <relative_path_to_lua_filter>
  21. <template_css_class>
  22. <relative_hyperlink_path_to_alt_site>
  23. [relative_path_to_output default=output]
  24. Commands
  25. help, -h, --help
  26. Show this usage help info.
  27. rss
  28. Build an rss feed from html metadata, sorted by date. The
  29. <input_directory> should not have a trailing / char.
  30. sitemap
  31. Build a sitemap.
  32. version, -v, --version
  33. Display the current version.
  34. <source-file>
  35. The format to convert to html followed by positional args.
  36. Formats allowed: org, markdown, markdown-smart
  37. EOS
  38. }