help.js 2.0 KB

123456789101112131415161718
  1. /**
  2. * @author Toru Nagashima
  3. * @copyright 2016 Toru Nagashima. All rights reserved.
  4. * See LICENSE file in root directory for full license.
  5. */
  6. /* eslint no-console:0 */
  7. "use strict";
  8. /**
  9. * Prints the help text.
  10. *
  11. * @returns {void}
  12. */
  13. module.exports = function help() {
  14. console.log("\nUsage: cpx <source> <dest> [options]\n\n Copy files, watching for changes.\n\n <source> The glob of target files.\n <dest> The path of a destination directory.\n\nOptions:\n\n -c, --command <command> A command text to transform each file.\n -C, --clean Clean files that matches <source> like pattern in\n <dest> directory before the first copying.\n -L, --dereference Follow symbolic links when copying from them.\n -h, --help Print usage information.\n --include-empty-dirs The flag to copy empty directories which is\n matched with the glob.\n --no-initial The flag to not copy at the initial time of watch.\n Use together '--watch' option.\n -p, --preserve The flag to copy attributes of files.\n This attributes are uid, gid, atime, and mtime.\n -t, --transform <name> A module name to transform each file. cpx lookups\n the specified name via \"require()\".\n -u, --update The flag to not overwrite files on destination if\n the source file is older.\n -v, --verbose Print copied/removed files.\n -V, --version Print the version number.\n -w, --watch Watch for files that matches <source>, and copy\n the file to <dest> every changing.\n\nExamples:\n\n cpx \"src/**/*.{html,png,jpg}\" app\n cpx \"src/**/*.css\" app --watch --verbose\n\nSee Also:\n https://github.com/mysticatea/cpx\n");
  15. };