[common] option: added shortopt support and pretty help print

This commit is contained in:
Geoffrey McRae
2019-05-21 11:31:31 +10:00
parent b9841351b4
commit 2d5f6d65ce
3 changed files with 173 additions and 37 deletions

View File

@@ -36,6 +36,7 @@ struct Option
char * module;
char * name;
char * description;
const char shortopt;
enum OptionType type;
union