From b50950b1e0d16b58677caa68a05b8ca6a2a45ddc Mon Sep 17 00:00:00 2001 From: jstmaxlol Date: Thu, 22 May 2025 19:23:40 +0200 Subject: 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) --- README.md | 4 ++-- xsc.cpp | 2 +- 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 <(+|-|x|/|%|^)> ` or `xsc -sqrt | -r ` \ +syntax: `xsc <(+|-|x|/|%|^)> ` or `xsc r ` \ 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; } -- cgit v1.3.1