index.js 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. var path = require('path');
  2. module.exports = {
  3. help: {
  4. short: 'h',
  5. info: 'Display this help text.',
  6. type: Boolean
  7. },
  8. base: {
  9. short: 'b',
  10. info: 'Specify an alternate base path. By default, all file paths are relative to the Gruntfile. ' +
  11. '(grunt.file.setBase) *',
  12. type: path
  13. },
  14. color: {
  15. info: 'Disable colored output.',
  16. type: Boolean,
  17. negate: true
  18. },
  19. gruntfile: {
  20. info: 'Specify an alternate Gruntfile. By default, grunt looks in the current or parent directories ' +
  21. 'for the nearest Gruntfile.js or Gruntfile.coffee file.',
  22. type: path
  23. },
  24. debug: {
  25. short: 'd',
  26. info: 'Enable debugging mode for tasks that support it.',
  27. type: [Number, Boolean]
  28. },
  29. stack: {
  30. info: 'Print a stack trace when exiting with a warning or fatal error.',
  31. type: Boolean
  32. },
  33. force: {
  34. short: 'f',
  35. info: 'A way to force your way past warnings. Want a suggestion? Don\'t use this option, fix your code.',
  36. type: Boolean
  37. },
  38. tasks: {
  39. info: 'Additional directory paths to scan for task and "extra" files. (grunt.loadTasks) *',
  40. type: Array
  41. },
  42. npm: {
  43. info: 'Npm-installed grunt plugins to scan for task and "extra" files. (grunt.loadNpmTasks) *',
  44. type: Array
  45. },
  46. write: {
  47. info: 'Disable writing files (dry run).',
  48. type: Boolean,
  49. negate: true
  50. },
  51. verbose: {
  52. short: 'v',
  53. info: 'Verbose mode. A lot more information output.',
  54. type: Boolean
  55. },
  56. version: {
  57. short: 'V',
  58. info: 'Print the grunt version. Combine with --verbose for more info.',
  59. type: Boolean
  60. },
  61. // Even though shell auto-completion is now handled by grunt-cli, leave this
  62. // option here for display in the --help screen.
  63. completion: {
  64. info: 'Output shell auto-completion rules. See the grunt-cli documentation for more information.',
  65. type: String
  66. },
  67. require: {
  68. info: 'Specify a language interpreter to require first if you are writing your Gruntfile in ' +
  69. 'a language Grunt doesn\'t support by default.',
  70. type: String
  71. },
  72. };