summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md4
-rw-r--r--xsc.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 39fe61e..6aa657c 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# XSC🧮
**XSC** (e**X**tremely**S**imple**C**alculator): the easiest way to calculate stuff in the terminal \
-syntax: `xsc <number> <(+|-|x|/|%|^)> <number>` or `xsc -sqrt | -r <number>` \
+syntax: `xsc <num1> <(+|-|x|/|%|^)> <num2>` or `xsc r <num>` \
pros: supports floating point number operations.. or smth \
**note**: compile with **g++**
@@ -8,7 +8,7 @@ pros: supports floating point number operations.. or smth \
**XSC** is now available on the [Arch User Repository](), \
install it with your favourite AUR helper:
* `yay` : `yay -S xsc`
-* `paru` : `paru -S package_name`
+* `paru` : `paru -S xsc`
* `trizen` : `trizen -S xsc`
* `pamac` : `pamac build xsc`
* `aurman` : `aurman -S xsc`
diff --git a/xsc.cpp b/xsc.cpp
index e0ab616..37d279f 100644
--- a/xsc.cpp
+++ b/xsc.cpp
@@ -9,7 +9,7 @@ int calculate(double& n1, char& op, double& n2);
void usage();
int main(int argc, char** argv) {
- if (argc > 4) {
+ if (argc > 5) {
std::cerr << "::> " << red << "xsc.Error" << def << "/" << red << "too_many_arguments " << def;
return -1;
}