From 122f4de1fa35ffc8da15eb03acd856a7d1f4d7cc Mon Sep 17 00:00:00 2001 From: Marco Falkenberg Date: Thu, 13 Feb 2020 13:36:09 +0100 Subject: [PATCH] Allow patterns to match entries that begin with a period (.) (#20) --- cli.js | 8 +++++++- readme.md | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) 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 c4e0554..06a72c5 100644 --- a/readme.md +++ b/readme.md @@ -28,6 +28,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