You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.4 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. module.exports = [
  2. {
  3. groups: "Server",
  4. options: [
  5. {
  6. name: "port", alias: "p", type: Number, defaultOption: true,
  7. description: "Web server port"
  8. },
  9. {
  10. name: "log-format", alias: "f", type: String,
  11. description: "If a format is supplied an access log is written to stdout. If not, \na statistics view is displayed. Use a preset ('none', 'dev',\n'combined', 'short', 'tiny' or 'logstalgia') or supply a custom format\n(e.g. ':method -> :url')."
  12. },
  13. {
  14. name: "directory", alias: "d", type: String,
  15. description: "Root directory, defaults to the current directory"
  16. },
  17. {
  18. name: "compress", alias: "c", type: Boolean,
  19. description: "Enables compression"
  20. },
  21. {
  22. name: "refresh-rate", alias: "r", type: Number,
  23. description: "Statistics view refresh rate in ms. Defaults to 500."
  24. }
  25. ]
  26. },
  27. {
  28. groups: "Misc",
  29. options: [
  30. {
  31. name: "help", alias: "h", type: Boolean,
  32. description: "Print these usage instructions"
  33. },
  34. {
  35. name: "config", type: Boolean,
  36. description: "Print the stored config"
  37. }
  38. ]
  39. }
  40. ];