summaryrefslogtreecommitdiff
path: root/src/muniacli.cc
diff options
context:
space:
mode:
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);