[gnome-calculator] Support for solving gcalccmd cmdline argument (bgo#788872)
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calculator] Support for solving gcalccmd cmdline argument (bgo#788872)
- Date: Tue, 23 Jan 2018 22:25:07 +0000 (UTC)
commit 0139ab3e56969de52656f21102157dc3c14cfcbb
Author: Robert Roth <robert roth off gmail com>
Date: Wed Jan 24 00:24:47 2018 +0200
Support for solving gcalccmd cmdline argument (bgo#788872)
src/gcalccmd.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/gcalccmd.vala b/src/gcalccmd.vala
index 88bf0b0..3bf6c45 100644
--- a/src/gcalccmd.vala
+++ b/src/gcalccmd.vala
@@ -63,6 +63,11 @@ public static int main (string[] args)
result_serializer = new Serializer (DisplayFormat.AUTOMATIC, 10, 9);
+ if (args.length == 2) {
+ solve (args[1]);
+ return Posix.EXIT_SUCCESS;
+ }
+
var buffer = new char[1024];
while (true)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]