projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
127f686
)
Command help match also on aliases
author
Jens Axboe
<jens.axboe@oracle.com>
Thu, 15 Mar 2007 13:09:28 +0000
(14:09 +0100)
committer
Jens Axboe
<jens.axboe@oracle.com>
Thu, 15 Mar 2007 13:09:28 +0000
(14:09 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
parse.c
patch
|
blob
|
blame
|
history
diff --git
a/parse.c
b/parse.c
index 7f1620223f9f7083712f9882bf38fb3089b24e18..a0242c2713af32b9faad8aca7e3fcfefb9a6d704 100644
(file)
--- a/
parse.c
+++ b/
parse.c
@@
-524,7
+524,8
@@
int show_cmd_help(struct fio_option *options, const char *name)
int match = 0;
if (name) {
- if (!strcmp(name, o->name))
+ if (!strcmp(name, o->name) ||
+ (o->alias && !strcmp(name, o->alias)))
match = 1;
else {
unsigned int dist;