Browse Source

change boa cli binary name to just "boa" (#326)

pull/312/head
Julian Laubstein 4 years ago committed by GitHub
parent
commit
f5d332c86e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      boa_cli/Cargo.toml
  2. 6
      boa_cli/src/main.rs

4
boa_cli/Cargo.toml

@ -13,3 +13,7 @@ edition = "2018"
[dependencies]
Boa = { path = "../boa", features = ["serde-ast"], default-features = false }
structopt = "0.3.13"
[[bin]]
name = "boa"
path = "src/main.rs"

6
boa_cli/src/main.rs

@ -18,7 +18,7 @@ use structopt::StructOpt;
// https://docs.rs/structopt/0.3.11/structopt/#type-magic
#[allow(clippy::option_option)]
#[derive(Debug, StructOpt)]
#[structopt(author, about)]
#[structopt(author, about, name = "boa")]
struct Opt {
/// The JavaScript file(s) to be evaluated.
#[structopt(name = "FILE", parse(from_os_str))]
@ -27,7 +27,7 @@ struct Opt {
/// Dump the token stream to stdout with the given format.
#[structopt(
long,
short = "-t",
short = "t",
value_name = "FORMAT",
possible_values = &DumpFormat::variants(),
case_insensitive = true,
@ -38,7 +38,7 @@ struct Opt {
/// Dump the ast to stdout with the given format.
#[structopt(
long,
short = "-a",
short = "a",
value_name = "FORMAT",
possible_values = &DumpFormat::variants(),
case_insensitive = true

Loading…
Cancel
Save