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

difftreelog

docs Fix docs of trace.rs

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

1 file changed

modifiedcrates/jrsonnet-cli/src/trace.rsdiffbeforeafterboth
27#[derive(Clap)]27#[derive(Clap)]
28// #[clap(help_heading = "STACK TRACE VISUAL")]28// #[clap(help_heading = "STACK TRACE VISUAL")]
29pub struct TraceOpts {29pub struct TraceOpts {
30 /// How stack traces should be displayed in console.30 /// Format of stack traces' display in console.
31 /// compact format only shows `filename:line:column`s, where explaining displays source code31 /// `compact` format only shows `filename:line:column`s
32 /// with attached trace annotations, so it is more verbose32 /// while `explaining` displays source code with attached trace annotations
33 /// thus being more verbose.
33 #[clap(long, possible_values = &["compact", "explaining"])]34 #[clap(long, possible_values = &["compact", "explaining"])]
34 trace_format: Option<TraceFormatName>,35 trace_format: Option<TraceFormatName>,
35 /// Amount of stack trace elements to be displayed, if zero - then full stack trace will be displayed36 /// Amount of stack trace elements to be displayed.
37 /// If set to `0` then full stack trace will be displayed.
36 #[clap(long, short = 't', default_value = "20")]38 #[clap(long, short = 't', default_value = "20")]
37 max_trace: usize,39 max_trace: usize,
38}40}