Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Apr 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions boa_cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 3 additions & 3 deletions boa_cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))]
Expand All @@ -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,
Expand All @@ -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
Expand Down