better help
This commit is contained in:
parent
d5ee7a420a
commit
eab8d90a65
26
src/main.rs
26
src/main.rs
|
@ -14,11 +14,27 @@ struct Arg {
|
|||
// #[command(subcommand)]
|
||||
// command: Option<Commands>,
|
||||
|
||||
/// Show verbose output
|
||||
#[arg(short, long)]
|
||||
verbose: bool,
|
||||
|
||||
/// An expression that should be used to calculate something
|
||||
///Syntax: '1 + task_param(inner) + 1 '{n}
|
||||
///{n}
|
||||
///Specify an expression, any expression may contain child expressions, which can be denoted{n}
|
||||
///with parenthesis '(child)'. Expressions may have a task applied to them, such as a
|
||||
///logarithm{n} or drawing a root. To apply a task to a expression, simply write the name of{n}
|
||||
///the task before denoting an expression: 'myTask(myExpression)'. You can apply a parameter{n}
|
||||
///to some tasks by using an underscore '_': 'myTask_myParameter(myExpression)'.{n}
|
||||
///{n}
|
||||
///List of Tasks:{n}
|
||||
///{n}
|
||||
///"none" explicitly set no task for expression{n}
|
||||
/// parameter: none
|
||||
///{n}
|
||||
///"root" or "sqrt" draw the root of the expression{n}
|
||||
/// parameter: draw n'th root of expression, default is 2.0{n}
|
||||
///{n}
|
||||
///"power" or "pow" or "sq" apply an exponent to the expression{n}
|
||||
/// parameter: specify exponent n, default is 2.0{n}
|
||||
///{n}
|
||||
///"log" or "ln" apply a logarithm to the expression{n}
|
||||
/// parameter: specify base n, default is 10{n}
|
||||
expressions: Vec<String>,
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue