DEV: flags: fix usage message to reflect available options
The proposed decoding options were not updated after the changes in 2.6,
let's fix that by taking the names from the existing declaration. This
should be backported to 2.6.
(cherry picked from commit c7ac17412b
)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
This commit is contained in:
parent
2a87e4d4c4
commit
f67f8eaafa
@ -408,7 +408,14 @@ void show_strm_flags(unsigned int f)
|
||||
|
||||
void usage_exit(const char *name)
|
||||
{
|
||||
fprintf(stderr, "Usage: %s [ana|chn|conn|sc|si|sierr|strm|task|txn]* { [+-][0x]value* | - }\n", name);
|
||||
int word, nbword;
|
||||
|
||||
fprintf(stderr, "Usage: %s [", name);
|
||||
|
||||
nbword = sizeof(show_as_words) / sizeof(*show_as_words);
|
||||
for (word = 0; word < nbword; word++)
|
||||
fprintf(stderr, "%s%s", word ? "|" : "", show_as_words[word]);
|
||||
fprintf(stderr, "]* { [+-][0x]value* | - }\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user