speechd-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Christopher Brannon
Subject: [PATCH] spd-say: --cancel should not take an argument.
Date: Mon, 15 Nov 2010 08:28:14 +0000

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]