[PATCH xinput 1/1] Print usage when run with --help

Peter Hutterer peter.hutterer at who-t.net
Wed Nov 30 14:02:57 PST 2011


On Wed, Nov 30, 2011 at 04:41:38AM -0800, Bryce Harrington wrote:
> On Tue, Nov 29, 2011 at 11:52:53PM -0800, Jeremy Huddleston wrote:
> > Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>
> > ---
> >  src/xinput.c |    5 +++++
> >  1 files changed, 5 insertions(+), 0 deletions(-)
> > 
> > diff --git a/src/xinput.c b/src/xinput.c
> > index 27fb23e..2d9a893 100644
> > --- a/src/xinput.c
> > +++ b/src/xinput.c
> > @@ -357,6 +357,11 @@ main(int argc, char * argv[])
> >          return print_version(argv[0]);
> >      }
> >  
> > +    if (strcmp("help", func) == 0) {
> > +        usage();
> > +        return 0;
> > +    }
> > +
> >      display = XOpenDisplay(NULL);
> >  
> >      if (display == NULL) {
> > -- 
> > 1.7.7
> 
> Reviewed-by: Bryce Harrington <bryce at canonical.com>


   b8f54d5..ab352ec  master -> master

thanks

Cheers,
  Peter


More information about the xorg-devel mailing list