diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-10-02 16:49:05 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-10-02 16:49:05 +0200 |
commit | 033e9f8cde5a7feec1334888aec69def99c945b5 (patch) | |
tree | cdffede0d38c9fa8d80b93608d5c6e423547610a /extras/collect/collect.c | |
parent | 842dacb76f2f98537554683d7cccec4710779a8a (diff) |
use no_argument, required_argument, optional_argument in longopts
Diffstat (limited to 'extras/collect/collect.c')
-rw-r--r-- | extras/collect/collect.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/extras/collect/collect.c b/extras/collect/collect.c index 14184a5e05..7ebe865b62 100644 --- a/extras/collect/collect.c +++ b/extras/collect/collect.c @@ -321,10 +321,10 @@ static void everybody(void) int main(int argc, char **argv) { static const struct option options[] = { - { "add", 0, NULL, 'a' }, - { "remove", 0, NULL, 'r' }, - { "debug", 0, NULL, 'd' }, - { "help", 0, NULL, 'h' }, + { "add", no_argument, NULL, 'a' }, + { "remove", no_argument, NULL, 'r' }, + { "debug", no_argument, NULL, 'd' }, + { "help", no_argument, NULL, 'h' }, {} }; int argi; |