better help

This commit is contained in:
Christoph J. Scherr 2023-02-12 23:05:13 +01:00
parent d5ee7a420a
commit eab8d90a65
1 changed files with 21 additions and 5 deletions

View File

@ -14,11 +14,27 @@ struct Arg {
// #[command(subcommand)] // #[command(subcommand)]
// command: Option<Commands>, // command: Option<Commands>,
/// Show verbose output ///Syntax: '1 + task_param(inner) + 1 '{n}
#[arg(short, long)] ///{n}
verbose: bool, ///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
/// An expression that should be used to calculate something ///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>, expressions: Vec<String>,
} }