diff --git a/src/Terminal/HelpText.ts b/src/Terminal/HelpText.ts index 64239cc27..6d231182c 100644 --- a/src/Terminal/HelpText.ts +++ b/src/Terminal/HelpText.ts @@ -218,15 +218,18 @@ export const HelpTexts: Record = { expr: [ "Usage: expr [mathematical expression]", " ", - "Evaluate a simple mathematical expression. Supports native JavaScript operators:", + "Evaluate a simple mathematical expression. Supports native JavaScript operators:", " ", "+, -, /, *, **, %", " ", "Example:", " ", - " expr 25 * 2 ** 10", + " expr 25*2", + ` expr "25 * 2 ** 10"`, " ", - "Note that letters (non-digits) are not allowed and will be removed from the input.", + `Except for the dot ("."), parentheses ("(" and ")"), and the letters "e" and "E" (used for scientific notation), `, + `most non-digit characters are not allowed and will be removed from the input.`, + "Some edge cases may need to be enclosed in quotes to evaluate correctly.", " ", ], free: [