commit | 15f7918ff432d5da2b2abc84a50c685bde5e72ef | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Wed Jan 10 12:26:18 2007 +0100 |
committer | Jens Axboe <jens.axboe@oracle.com> | Wed Jan 10 12:26:18 2007 +0100 |
tree | 7047a5ef892c69a0c4f2c1ccd38511b140fc914d | |
parent | facba0e53b7108d70f34e3eb01b54c2efd73f5f4 [diff] [blame] |
[PATCH] Show allowed option values for string matching Helpful to avoid looking in the documentation. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/parse.h b/parse.h index edba7fc..3e3c9d9 100644 --- a/parse.h +++ b/parse.h
@@ -30,6 +30,7 @@ void *cb; /* callback */ const char *help; /* help text for option */ const char *def; /* default setting */ + const char *posval[16]; /* possible values */ }; typedef int (str_cb_fn)(void *, char *);