From 0039248eb45ef45c6958e46670eea043225f83e4 Mon Sep 17 00:00:00 2001 From: marchersimon <50295997+marchersimon@users.noreply.github.com> Date: Sat, 16 Jul 2022 22:52:27 +0200 Subject: [PATCH] calc: set help example as lastest example (#8149) --- pages.de/common/calc.md | 28 ++++++++++++++++++++++++++-- pages/common/calc.md | 30 +++++++++++++++++++++++++++--- 2 files changed, 53 insertions(+), 5 deletions(-) diff --git a/pages.de/common/calc.md b/pages.de/common/calc.md index 5aa6c789e..5f2edbc6d 100644 --- a/pages.de/common/calc.md +++ b/pages.de/common/calc.md @@ -3,10 +3,34 @@ > Ein interaktiver Rechner im Terminal mit beliebiger Genauigkeit. > Weitere Informationen: . -- Starte calc im interaktiven Modus: +- Starte `calc` im interaktiven Modus: `calc` - Führe eine nicht-interaktive Berechnung durch: -`calc -p '{{85 * (36 / 4)}}'` +`calc '{{85 * (36 / 4)}}'` + +- Führe eine Berechnung durch ohne die Ausgabe zu formatieren (für das Benutzen mit Pipes): + +`calc -p '{{4/3 * pi() * 5^3}}'` + +- Führe eine Berechnung durch und wechsle dann in den [i]nteraktiven Modus: + +`calc -i '{{sqrt(2)}}'` + +- Starte `calc` in einem bestimmten Berechtigungs[m]odus (0 bis 7, standardmäßig 7): + +`calc -m {{mode}}` + +- Öffne eine Einführung zu `calc`: + +`calc help intro` + +- Öffne eine Übersicht von `calc`: + +`calc help overview` + +- Öffne die Bedienungsanleitung von `calc`: + +`calc help` diff --git a/pages/common/calc.md b/pages/common/calc.md index e3737334a..49f327b33 100644 --- a/pages/common/calc.md +++ b/pages/common/calc.md @@ -1,12 +1,36 @@ # calc -> An interactive arbitrary-precision calculator on the terminal. +> An interactive arbitrary-precision calculator in the terminal. > More information: . -- Start calc in interactive mode: +- Start `calc` in interactive mode: `calc` - Perform a calculation in non-interactive mode: -`calc -p '{{85 * (36 / 4)}}'` +`calc '{{85 * (36 / 4)}}'` + +- Perform a calculation without any output formatting (for use with pipes): + +`calc -p '{{4/3 * pi() * 5^3}}'` + +- Perform a calculation and then switch to [i]nteractive mode: + +`calc -i '{{sqrt(2)}}'` + +- Start `calc` in a specific permission [m]ode (0 to 7, defaults to 7): + +`calc -m {{mode}}` + +- View an introduction to `calc`: + +`calc help intro` + +- View an overview of `calc`: + +`calc help overview` + +- Open the `calc` manual: + +`calc help`