diff --git a/cli.js b/cli.js index 4caf195..e11be56 100755 --- a/cli.js +++ b/cli.js @@ -12,6 +12,7 @@ const cli = meow(` --parents Preserve path structure --cwd= Working directory for files --rename= Rename all filenames to + --dot Allow patterns to match entries that begin with a period (.) can contain globs if quoted @@ -37,6 +38,10 @@ const cli = meow(` }, rename: { type: 'string' + }, + dot: { + type: 'boolean', + default: false } } }); @@ -47,7 +52,8 @@ const cli = meow(` cwd: cli.flags.cwd, rename: cli.flags.rename, parents: cli.flags.parents, - overwrite: cli.flags.overwrite + overwrite: cli.flags.overwrite, + dot: cli.flags.dot }); } catch (error) { if (error.name === 'CpyError') { diff --git a/readme.md b/readme.md index feee2d3..3b2f8e9 100644 --- a/readme.md +++ b/readme.md @@ -31,6 +31,7 @@ $ cpy --help --parents Preserve path structure --cwd= Working directory for files --rename= Rename all filenames to + --dot Allow patterns to match entries that begin with a period (.) can contain globs if quoted