feat(cli): Rename web-ui -> playground with fallback alias
This commit is contained in:
parent
80ee33b073
commit
1220ec3852
1 changed files with 6 additions and 3 deletions
|
|
@ -169,8 +169,11 @@ fn run() -> Result<()> {
|
|||
.arg(Arg::with_name("path").index(1).multiple(true)),
|
||||
)
|
||||
.subcommand(
|
||||
SubCommand::with_name("web-ui")
|
||||
.about("Test a parser interactively in the browser")
|
||||
SubCommand::with_name("playground")
|
||||
.alias("play")
|
||||
.alias("pg")
|
||||
.alias("web-ui")
|
||||
.about("Start local playground for a parser in the browser")
|
||||
.arg(
|
||||
Arg::with_name("quiet")
|
||||
.long("quiet")
|
||||
|
|
@ -437,7 +440,7 @@ fn run() -> Result<()> {
|
|||
wasm::compile_language_to_wasm(&grammar_path, matches.is_present("docker"))?;
|
||||
}
|
||||
|
||||
("web-ui", Some(matches)) => {
|
||||
("playground", Some(matches)) => {
|
||||
let open_in_browser = !matches.is_present("quiet");
|
||||
web_ui::serve(¤t_dir, open_in_browser);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue