git.delta.rocks / jrsonnet / refs/commits / aeb6b6134a20

difftreelog

docs fix CLI's `lib.rs`

progrm_jarvis2020-08-03parent: #e20e28e.patch.diff
in: master

1 file changed

modifiedcrates/jrsonnet-cli/src/lib.rsdiffbeforeafterboth
22 #[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,
2828
29 #[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}
3233
33#[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 loaded
37 /// 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,
4043
41 /// 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 exceeded
42 #[clap(long, short = 's', default_value = "200")]46 #[clap(long, short = 's', default_value = "200")]
43 max_stack: usize,47 max_stack: usize,
4448
49 /// 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 directories
47 #[clap(long, short = 'J')]53 #[clap(long, short = 'J')]
48 jpath: Vec<PathBuf>,54 jpath: Vec<PathBuf>,
49}55}
62 }68 }
63}69}
6470
65/// For general configuration of jsonnet71/// General configuration of jsonnet
66#[derive(Clap)]72#[derive(Clap)]
67#[clap(name = "jrsonnet", version, author)]73#[clap(name = "jrsonnet", version, author)]
68pub struct GeneralOpts {74pub struct GeneralOpts {