diff options
| -rw-r--r-- | README.md | 4 | ||||
| -rw-r--r-- | xsc.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -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` @@ -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; } |