git.delta.rocks / jrsonnet / refs/commits / 2c0daa5a236b

difftreelog

docs Add missing docs to lib.rs of CLI

progrm_jarvis2020-08-23parent: #aeb6b61.patch.diff
in: master

1 file changed

modifiedcrates/jrsonnet-cli/src/lib.rsdiffbeforeafterboth
26 )]26 )]
27 pub evaluate: bool,27 pub evaluate: bool,
2828
29 #[clap(about = "Path to the file to be compiled if `--evaluate` is unset, \29 #[clap(
30 otherwise code itself")]30 about = "Path to the file to be compiled if `--evaluate` is unset, otherwise code itself"
31 )]
31 pub input: String,32 pub input: String,
32}33}
37 /// Disable standard library.38 /// Disable standard library.
38 /// By default standard library will be available via global `std` variable.39 /// By default standard library will be available via global `std` variable.
39 /// Note that standard library will still be loaded40 /// Note that standard library will still be loaded
40 /// if chosen manifestification method is not `none`41 /// if chosen manifestification method is not `none`.
41 #[clap(long)]42 #[clap(long)]
42 no_stdlib: bool,43 no_stdlib: bool,
4344
44 /// Maximal allowed number of stack frames,45 /// Maximal allowed number of stack frames,
45 /// stack overflow error will be raised if this number gets exceeded46 /// stack overflow error will be raised if this number gets exceeded.
46 #[clap(long, short = 's', default_value = "200")]47 #[clap(long, short = 's', default_value = "200")]
47 max_stack: usize,48 max_stack: usize,
4849
49 /// Library search dirs.50 /// Library search dirs.
50 /// Any not found `imported` file will be searched in these.51 /// Any not found `imported` file will be searched in these.
51 /// This can also be specified via `JSONNET_PATH` variable,52 /// This can also be specified via `JSONNET_PATH` variable,
52 /// which should contain a colon-separated (semicolon-separated on Windows) list of directories53 /// which should contain a colon-separated (semicolon-separated on Windows) list of directories.
53 #[clap(long, short = 'J')]54 #[clap(long, short = 'J')]
54 jpath: Vec<PathBuf>,55 jpath: Vec<PathBuf>,
55}56}