summaryrefslogtreecommitdiff
path: root/src/muniacli.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2012-06-15 14:15:11 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2012-06-15 14:15:11 +0200
commitedba01f5030a04ca6f56cb5865464c400ec7069d (patch)
treee80e5736d91764eee6d2ec6b3d73d5a987b1015a /src/muniacli.cc
parente1a8cfa936f6676366cbdda319a3439c00220de6 (diff)
parent4f919bc4b1cecf9e4cfe25d21a7292bee3ee018b (diff)
Merge branch 'master' of https://git.oftal.dk/munia
Diffstat (limited to 'src/muniacli.cc')
-rw-r--r--src/muniacli.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/muniacli.cc b/src/muniacli.cc
index 14f543e..11b4829 100644
--- a/src/muniacli.cc
+++ b/src/muniacli.cc
@@ -281,7 +281,7 @@ int main(int argc, char** argv)
int n = 0;
while(n >= 0) {
- n = getopt_long(argc, argv, "p:iN:I:CLR:U:hH:", options, NULL);
+ n = getopt_long(argc, argv, "p:iN:I:CLRU:hH:", options, NULL);
if(n < 0) continue;
switch(n) {
case 'i':
@@ -340,21 +340,25 @@ int main(int argc, char** argv)
switch(cmd) {
case CREATE:
msgs = "create " + taskbyid + ";";
+ msgs += "observe " + taskbyid + ";";
break;
case LIST:
- msgs = "observe " + taskbyid; //+
+ msgs = "observe " + taskbyid + ";"; //+
// "; unobserve " + task + ";";
break;
case REMOVE:
msgs = "remove " + taskbyid + ";";
break;
case UPDATE:
- msgs = "update " + taskbyid + " " + cmd_opts;
+ msgs = "update " + taskbyid + " \"" + cmd_opts + "\"; ";
+ msgs += "observe " + taskbyid + ";";
break;
case DEFAULT:
break;
}
+// printf("msgs: %s\n", msgs.c_str());
+
/*
if(!interactive && argc - optionscount < 3) {
fprintf(stderr, "%s", USAGE);