]> git.tuebingen.mpg.de Git - paraslash.git/commit
specify the three grab modes as values in grab_client.ggo
authorAndre <maan@p133.(none)>
Mon, 27 Mar 2006 08:50:08 +0000 (10:50 +0200)
committerAndre <maan@p133.(none)>
Mon, 27 Mar 2006 08:50:08 +0000 (10:50 +0200)
commitc6a9d624a8e7334b08dbd0acf8c7df016044cb9e
treed840452c82a1b8240e40ff73777ab85b2577df47
parentc4ccd0674269d2bed28e7a091af5b6b97db4b65a
specify the three grab modes as values in grab_client.ggo

That makes gengetopt check that the argument to the --mode
option is one of sloppy, pedantic, or aggressive, so get rid of
E_INVALID_GRAB_MODE, the gc_modes array and of the error check in
grab_client.c.

Another nice side-effect is that also "s", "p", "a" work as
abreviations for the grab mode argument.

Reformat grab_client.ggo as we are at it.
error.h
grab_client.c
grab_client.ggo
grab_client.h