update README
This commit is contained in:
parent
d2bffd6576
commit
e9e08d36b6
1 changed files with 8 additions and 7 deletions
13
README.org
13
README.org
|
|
@ -1,4 +1,4 @@
|
||||||
* sf
|
\* sf
|
||||||
|
|
||||||
/script framework/
|
/script framework/
|
||||||
|
|
||||||
|
|
@ -8,14 +8,14 @@
|
||||||
sfname="calc"
|
sfname="calc"
|
||||||
sfdesc="A simple calculator which can add and subtract."
|
sfdesc="A simple calculator which can add and subtract."
|
||||||
|
|
||||||
sfargs=("A;First number")
|
sfargs+=("A;First number")
|
||||||
sfargs+=("B;Second number")
|
sfargs+=("B;Second number")
|
||||||
sfargs+=("substract;s;Substract B from A")
|
sfargs+=("substract;s;Substract B from A")
|
||||||
sfargs+=("multiply;m;MULTIPLICATOR;1;Multiply the result with MULTIPLICATOR")
|
sfargs+=("multiply;m;MULTIPLICATOR;1;Multiply the result with MULTIPLICATOR")
|
||||||
|
|
||||||
sfexamples=("calc 3 5;Prints the result of 3 + 5")
|
sfexamples+=("calc 3 5;Prints the result of 3 + 5")
|
||||||
sfexamples=("calc -s 2 1;Prints the result of 2 - 1")
|
sfexamples+=("calc -s 2 1;Prints the result of 2 - 1")
|
||||||
sfexamples=("calc -m 3 -s 2 1;Prints the result of (2 - 1) * 3")
|
sfexamples+=("calc -m 3 -s 2 1;Prints the result of (2 - 1) * 3")
|
||||||
|
|
||||||
sfextrausage="No copyright at all."
|
sfextrausage="No copyright at all."
|
||||||
|
|
||||||
|
|
@ -38,7 +38,6 @@
|
||||||
Help output:
|
Help output:
|
||||||
|
|
||||||
#+begin_example
|
#+begin_example
|
||||||
$ calc -h
|
|
||||||
Usage: calc OPTIONS A B
|
Usage: calc OPTIONS A B
|
||||||
|
|
||||||
A simple calculator which can add and subtract.
|
A simple calculator which can add and subtract.
|
||||||
|
|
@ -53,6 +52,8 @@ Help output:
|
||||||
1)
|
1)
|
||||||
|
|
||||||
EXAMPLES
|
EXAMPLES
|
||||||
|
calc 3 5 Prints the result of 3 + 5
|
||||||
|
calc -s 2 1 Prints the result of 2 - 1
|
||||||
calc -m 3 -s 2 1 Prints the result of (2 - 1) * 3
|
calc -m 3 -s 2 1 Prints the result of (2 - 1) * 3
|
||||||
|
|
||||||
No copyright at all.
|
No copyright at all.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue