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.

30 lines
1.2 KiB

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