Skip to content
This repository has been archived by the owner on Dec 6, 2021. It is now read-only.

No documentation for --clear-console option #461

Closed
padcom opened this issue Jul 6, 2018 · 1 comment
Closed

No documentation for --clear-console option #461

padcom opened this issue Jul 6, 2018 · 1 comment

Comments

@padcom
Copy link

padcom commented Jul 6, 2018

Do you want to request a feature or report a bug?
Bug! Missing documentation!

What is the current behavior?

$ npx poi --help 

  poi 10.2.9
...
    --clear-console  Whether to clear console. (default: true)

If the current behavior is a bug, please provide the steps to reproduce.
Notice the default: true commend in the description? How am I supposed to be able to turn that behavior off it is on by default? The documentation is non-existen and this feature is not synonymous with the previous version.

What is the expected behavior?
Either add --no-clear-console or --clear-console=false or simply don't clear the console by default and leave the option as-is.

Please mention other relevant information such as the browser version, Node.js version, Poi version and Operating System.

POI: 10.2.9

@egoist
Copy link
Owner

egoist commented Dec 2, 2018

Now Poi CLI should output the full list of available flags

❯ poi -h
poi v12.0.0-beta.2

Usage:
  $ poi [...entries] [options]

Commands:
  [...entries]           Entry files to start bundling
  eject-html [out-file]  Eject the default HTML file

For more info, run any command with the `--help` flag:
  $ poi --help
  $ poi eject-html --help

Options:
  -d, --out-dir <dir>       Output directory (default: dist)
  --no-progress             Disable default progress bar (default: true)
  --no-source-map           Disable source map (default: true)
  --parallel                Enable multicore compilation (experimental)
  --cache                   Enable compilation caching
  --public-url <url>        Set the public URL to serve on (default: /)
  --target <target>         Target environment (default: browser)
  --format <format>         Output format (default: iife)
  --module-name <name>      Module name for "umd" format
  --file-names <filenames>  Customize output filenames
  --no-clean                Don't clean output directory before bundling (default: true)
  --html <options>          Configure generated HTML file
  --no-clear-console        Don't clear console (default: true)
  --minimize                Minimize output
  --jsx <syntax>            Set JSX syntax (default: react)
  --extract-css             Extract CSS files
  -w, --watch               Watch and rebuild on file changes
  -s, --serve               Serve assets on a local server
  --mode <mode>             Set mode
  --prod, --production      Alias for --mode production
  --test                    Alias for --mode test
  --no-config               Disable config file (default: true)
  --config <path>           Set the path to config file
  --debug                   Show debug logs
  --inspect-webpack         Inspect webpack config in your editor
  -v, --version             Display version number
  -h, --help                Display this message

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants