[PATCH] spd-say: --cancel should not take an argument.

Christopher Brannon chris at the-brannons.com
Mon Nov 15 09:28:14 CET 2010


The short form of --cancel, -C, takes no argument.  The long form
required one.  The option specification was incorrect.
There is no reason for --cancel to require an argument, so this patch
changes the specification of the long option to match the short
option.
---
 src/clients/say/options.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/clients/say/options.h b/src/clients/say/options.h
index 2d33ed5..ae49edd 100644
--- a/src/clients/say/options.h
+++ b/src/clients/say/options.h
@@ -65,7 +65,7 @@ static struct option long_options[] = {
     {"connection-name", 1, 0, 'n'},
     {"wait", 0, 0, 'w'},
     {"stop", 1, 0, 'S'},
-    {"cancel", 1, 0, 'C'},
+    {"cancel", no_argument, 0, 'C'},
     {"version", 0, 0, 'v'},
     {"help", 0, 0, 'h'},
     {0, 0, 0, 0}
-- 
1.7.3.2




More information about the Speechd mailing list