aboutsummaryrefslogtreecommitdiff
path: root/sam.c
diff options
context:
space:
mode:
Diffstat (limited to 'sam.c')
-rw-r--r--sam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sam.c b/sam.c
index 3db08fd..1f5e816 100644
--- a/sam.c
+++ b/sam.c
@@ -328,7 +328,7 @@ static char *parse_cmdname(const char **s) {
Buffer buf;
buffer_init(&buf);
- while (isalpha((unsigned char)**s))
+ while (isalpha((unsigned char)**s) || **s == '-')
buffer_append(&buf, (*s)++, 1);
if (buffer_length(&buf))