diff options
author | Jani Nikula <jani@nikula.org> | 2012-12-03 22:56:12 +0200 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2012-12-04 09:10:19 -0400 |
commit | 8ce50f300fd94dc999ea39eef1ac64e466ebdd0e (patch) | |
tree | e040bbf15b4df80ecacbcb368c26e4e751c26997 /notmuch.c | |
parent | fb6edb08005fdae210ed4fdc6ac654db236b8ed2 (diff) |
cli: fix notmuch top level argument parsing
Use strcmp instead of STRNCMP_LITERAL, which matches the prefix
instead of the whole argument.
Diffstat (limited to 'notmuch.c')
-rw-r--r-- | notmuch.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -245,10 +245,10 @@ main (int argc, char *argv[]) if (argc == 1) return notmuch (local); - if (STRNCMP_LITERAL (argv[1], "--help") == 0) + if (strcmp (argv[1], "--help") == 0) return notmuch_help_command (NULL, argc - 1, &argv[1]); - if (STRNCMP_LITERAL (argv[1], "--version") == 0) { + if (strcmp (argv[1], "--version") == 0) { printf ("notmuch " STRINGIFY(NOTMUCH_VERSION) "\n"); return 0; } |