From eab8d90a65481fd53044db7cc186c640d85f23e9 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Sun, 12 Feb 2023 23:05:13 +0100 Subject: [PATCH] better help --- src/main.rs | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index 1c5fe2a..4bace33 100644 --- a/src/main.rs +++ b/src/main.rs @@ -14,11 +14,27 @@ struct Arg { // #[command(subcommand)] // command: Option, - /// 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, }