Skip to content

Commit

Permalink
Allow patterns to match entries that begin with a period (.) (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfal committed Feb 13, 2020
1 parent af00c3b commit 122f4de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cli.js
Expand Up @@ -12,6 +12,7 @@ const cli = meow(`
--parents Preserve path structure
--cwd=<dir> Working directory for files
--rename=<filename> Rename all <source> filenames to <filename>
--dot Allow patterns to match entries that begin with a period (.)
<source> can contain globs if quoted
Expand All @@ -37,6 +38,10 @@ const cli = meow(`
},
rename: {
type: 'string'
},
dot: {
type: 'boolean',
default: false
}
}
});
Expand All @@ -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') {
Expand Down
1 change: 1 addition & 0 deletions readme.md
Expand Up @@ -28,6 +28,7 @@ $ cpy --help
--parents Preserve path structure
--cwd=<dir> Working directory for files
--rename=<filename> Rename all <source> filenames to <filename>
--dot Allow patterns to match entries that begin with a period (.)
<source> can contain globs if quoted
Expand Down

0 comments on commit 122f4de

Please sign in to comment.