mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Calc: Code cleanup
This commit is contained in:
parent
0c19c3cde1
commit
7894e16e43
1 changed files with 2 additions and 0 deletions
|
@ -68,6 +68,7 @@ int main (int argc, char** argv)
|
||||||
// Combine all the arguments into one expression string.
|
// Combine all the arguments into one expression string.
|
||||||
std::string expression;
|
std::string expression;
|
||||||
for (int i = 1; i < argc; i++)
|
for (int i = 1; i < argc; i++)
|
||||||
|
{
|
||||||
if (!strcmp (argv[i], "-h") || ! strcmp (argv[i], "--help"))
|
if (!strcmp (argv[i], "-h") || ! strcmp (argv[i], "--help"))
|
||||||
{
|
{
|
||||||
std::cout << '\n'
|
std::cout << '\n'
|
||||||
|
@ -104,6 +105,7 @@ int main (int argc, char** argv)
|
||||||
infix = false;
|
infix = false;
|
||||||
else
|
else
|
||||||
expression += std::string (argv[i]) + ' ';
|
expression += std::string (argv[i]) + ' ';
|
||||||
|
}
|
||||||
|
|
||||||
Variant result;
|
Variant result;
|
||||||
if (infix)
|
if (infix)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue