diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2021-04-26 07:40:37 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2021-04-26 07:40:37 +0200 |
commit | e6279af295cc0e8b985a5a43a16ac6313eb6c698 (patch) | |
tree | 52f39915b61988b784fd03495234dd75001e033e /src/lutris.c | |
parent | 67d5d1b742584ffeb9859eb7b92a41e0d365622d (diff) | |
download | polecat-e6279af295cc0e8b985a5a43a16ac6313eb6c698.tar.gz polecat-e6279af295cc0e8b985a5a43a16ac6313eb6c698.zip |
implement flags and sort commands by alphabet
stupid standard --help and --version
Diffstat (limited to 'src/lutris.c')
-rw-r--r-- | src/lutris.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lutris.c b/src/lutris.c index 7d663c0..da893d1 100644 --- a/src/lutris.c +++ b/src/lutris.c @@ -9,12 +9,15 @@ #include "net.h" static const struct Command lutris_commands[] = { - { .name = "search", .func = lutris_search, .description = "search for lutris installers" }, - { .name = "list", .func = lutris_list, .description = "list installers for a game"}, - { .name = "install", .func = lutris_install, .description = "install a lutris script" }, { .name = "info", .func = lutris_info, .description = "show information about a lutris script" }, + { .name = "install", .func = lutris_install, .description = "install a lutris script" }, + { .name = "list", .func = lutris_list, .description = "list installers for a game"}, + { .name = "search", .func = lutris_search, .description = "search for lutris installers" }, }; +static const struct Flag lutris_flags[] = { + { .name = "help", .variant = DOUBLE, .func = lutris_help, .description = "show this message"} +}; char* getpwd() { |