util/hbitmap: update orig_size on truncate
[qemu/ar7.git] / include / qemu / help_option.h
blob328d2a89fdab372493bac37813ccaecaa5ea5349
1 #ifndef QEMU_HELP_OPTION_H
2 #define QEMU_HELP_OPTION_H
4 /**
5 * is_help_option:
6 * @s: string to test
8 * Check whether @s is one of the standard strings which indicate
9 * that the user is asking for a list of the valid values for a
10 * command option like -cpu or -M. The current accepted strings
11 * are 'help' and '?'. '?' is deprecated (it is a shell wildcard
12 * which makes it annoying to use in a reliable way) but provided
13 * for backwards compatibility.
15 * Returns: true if @s is a request for a list.
17 static inline bool is_help_option(const char *s)
19 return !strcmp(s, "?") || !strcmp(s, "help");
22 #endif