summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjstmaxlol <maxwasmailed@proton.me>2025-05-22 19:23:40 +0200
committerjstmaxlol <maxwasmailed@proton.me>2025-05-22 19:23:40 +0200
commitb50950b1e0d16b58677caa68a05b8ca6a2a45ddc (patch)
treebe31e23e235fa159b5c28e37fde6312d0c866aa1
parent0baa133d1850eecf8a89475c8ce2e48b4aef2137 (diff)
yeah ok actually just fuck me i guess
`paru -S package_name` like bro fuck am i even doing today (and about the xsc.cpp fix, i'm actually getting dementia or smth because wtf)
-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;
}