difftreelog
docs fix CLI's `lib.rs`
in: master
1 file changed
crates/jrsonnet-cli/src/lib.rsdiffbeforeafterboth22 #[clap(22 #[clap(23 long,23 long,24 short = 'e',24 short = 'e',25 about = "Threat input as code, evaluate them instead of reading file"25 about = "Treat input as code, evaluate them instead of reading file"26 )]26 )]27 pub evaluate: bool,27 pub evaluate: bool,282829 #[clap(about = "File to compile (Or code directly, if --evaluate is specified)")]29 #[clap(about = "Path to the file to be compiled if `--evaluate` is unset, \30 otherwise code itself")]30 pub input: String,31 pub input: String,31}32}323333#[derive(Clap)]34#[derive(Clap)]34// #[clap(help_heading = "OPTIONS")]35// #[clap(help_heading = "OPTIONS")]35pub struct MiscOpts {36pub struct MiscOpts {37 /// Disable standard library.36 /// Disable standard library. By default, standard library will be available via global `std` variable.38 /// By default standard library will be available via global `std` variable.39 /// Note that standard library will still be loaded37 /// Beware that standard library will still be loaded if choosen manifestification method is not `none`40 /// if chosen manifestification method is not `none`38 #[clap(long)]41 #[clap(long)]39 no_stdlib: bool,42 no_stdlib: bool,404341 /// Number of allowed stack frames, stack overflow error will be returned if reached44 /// Maximal allowed number of stack frames,45 /// stack overflow error will be raised if this number gets exceeded42 #[clap(long, short = 's', default_value = "200")]46 #[clap(long, short = 's', default_value = "200")]43 max_stack: usize,47 max_stack: usize,444849 /// Library search dirs.45 /// Library search dirs. Any not found `imported` file will be searched in them.50 /// Any not found `imported` file will be searched in these.51 /// This can also be specified via `JSONNET_PATH` variable,46 /// Can also be specified via JSONNET_PATH, which should contain colon (semicolon on Windows) delimited list of directories52 /// which should contain a colon-separated (semicolon-separated on Windows) list of directories47 #[clap(long, short = 'J')]53 #[clap(long, short = 'J')]48 jpath: Vec<PathBuf>,54 jpath: Vec<PathBuf>,49}55}62 }68 }63}69}647065/// For general configuration of jsonnet71/// General configuration of jsonnet66#[derive(Clap)]72#[derive(Clap)]67#[clap(name = "jrsonnet", version, author)]73#[clap(name = "jrsonnet", version, author)]68pub struct GeneralOpts {74pub struct GeneralOpts {