]> git.ipfire.org Git - thirdparty/mdadm.git/commit - mdmon.c
mdmon: Use getopt_long() to parse command line options
authorJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 25 Jan 2012 14:18:01 +0000 (15:18 +0100)
committerNeilBrown <neilb@suse.de>
Mon, 30 Jan 2012 01:11:07 +0000 (12:11 +1100)
commiteb155f6de0986dc14c37dc9c4172bf0bcb8779fe
treefb340ec540d2287ab99b2e700a9548efa217966f
parent30602f533f151c24fe1345f495f02c30f98895f1
mdmon: Use getopt_long() to parse command line options

This changes mdmon over to use getopt_long() for option parsing,
making it easier to add new options. In addition this patch introduces
a short version -t for --takeover and adds -h/--help.

Acked-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
mdmon.c