mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-06-13 11:51:06 +00:00
Add --license arg
This commit is contained in:
@@ -19,6 +19,10 @@ pub struct Arguments {
|
|||||||
#[structopt(long = "version")]
|
#[structopt(long = "version")]
|
||||||
pub version: bool,
|
pub version: bool,
|
||||||
|
|
||||||
|
/// Print the licence and exit.
|
||||||
|
#[structopt(long = "license")]
|
||||||
|
pub license: bool,
|
||||||
|
|
||||||
/// Specify the input paths and remappings.
|
/// Specify the input paths and remappings.
|
||||||
/// If an argument contains a '=', it is considered a remapping.
|
/// If an argument contains a '=', it is considered a remapping.
|
||||||
/// Multiple Solidity files can be passed in the default Solidity mode.
|
/// Multiple Solidity files can be passed in the default Solidity mode.
|
||||||
|
|||||||
@@ -39,6 +39,14 @@ fn main_inner() -> anyhow::Result<()> {
|
|||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if arguments.license {
|
||||||
|
let license_mit = include_str!("../../../../LICENSE-MIT");
|
||||||
|
let license_apache = include_str!("../../../../LICENSE-APACHE");
|
||||||
|
|
||||||
|
println!("{}\n{}\n", license_mit, license_apache);
|
||||||
|
return Ok(());
|
||||||
|
}
|
||||||
|
|
||||||
rayon::ThreadPoolBuilder::new()
|
rayon::ThreadPoolBuilder::new()
|
||||||
.stack_size(RAYON_WORKER_STACK_SIZE)
|
.stack_size(RAYON_WORKER_STACK_SIZE)
|
||||||
.build_global()
|
.build_global()
|
||||||
|
|||||||
Reference in New Issue
Block a user