@@ -16,7 +16,7 @@ const cli = meow(`
1616 --output -o Output File or Folder
1717 --config -c Path to config file
1818 --use -u PostHTML plugin name
19- --base -b Mirror the directory structure relative to this path in the output directory
19+ --root -r Mirror the directory structure relative to this path in the output directory
2020 --help -h CLI Help
2121 --version -v CLI Version
2222
@@ -28,7 +28,7 @@ const cli = meow(`
2828 $ posthtml input.html -o output.html -u posthtml-bem --posthtml-bem.elemPrefix __
2929 $ posthtml inputFolder/*.html -o outputFolder
3030 $ posthtml inputFolder/**/*.html -o outputFolder
31- $ posthtml inputFolder/**/*.html -o outputFolder -b inputFolder
31+ $ posthtml inputFolder/**/*.html -o outputFolder -r inputFolder
3232` , {
3333 flags : {
3434 config : {
@@ -51,9 +51,9 @@ const cli = meow(`
5151 type : 'array' ,
5252 alias : 'u'
5353 } ,
54- base : {
54+ root : {
5555 type : 'string' ,
56- alias : 'b '
56+ alias : 'r '
5757 }
5858 }
5959} ) ;
@@ -74,7 +74,7 @@ const getPlugins = config => Object.keys(config.plugins || {})
7474const config = cfgResolve ( cli ) ;
7575
7676const processing = async file => {
77- const output = await outResolve ( file , config . output , config . base ) ;
77+ const output = await outResolve ( file , config . output , config . root ) ;
7878 const plugins = Array . isArray ( config . plugins ) ? config . plugins : getPlugins ( config ) ;
7979
8080 makeDir ( path . dirname ( output ) )
0 commit comments