diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2020-08-10 12:43:26 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2020-08-10 12:43:26 +0200 |
commit | 1753e2b151cbb4af75a4e9ea61720b3704b03805 (patch) | |
tree | 6265e9829a6d6b76ddae13de2138ef8f1c657ccd /src/main.c | |
parent | c11dd0eae09df4982459a34d764910d0501f2ae2 (diff) | |
download | polecat-1753e2b151cbb4af75a4e9ea61720b3704b03805.tar.gz polecat-1753e2b151cbb4af75a4e9ea61720b3704b03805.zip |
a lot of changes […]0.1.3
- go to next entry of argv and decrement argc the deeper it goes
- add basic lutris functionality
- remove "help" from help message and as a command
- replace all stderr prints with stdout prints (usually stderr is better for directly informing the user but in this case I don't think it will help much)
- add libarchive dependency to the README
- bump version number
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -5,14 +5,15 @@ #include "main.h" #include "wine.h" #include "dxvk.h" +#include "lutris.h" #include "common.h" #include "config.h" const static struct Command main_commands[] = { - { .name = "wine", .func = wine, .description = "manage wine versions" }, - //{ .name = "dxvk", .func = dxvk, .description = "manage dxvk versions (TODO)" }, - { .name = "info", .func = main_info, .description = "show some information about polecat" }, - { .name = "help", .func = main_help, .description = "displays this message" }, + { .name = "wine", .func = wine, .description = "manage wine versions" }, + //{ .name = "dxvk", .func = dxvk, .description = "manage dxvk versions (TODO)" }, + { .name = "lutris", .func = lutris, .description = "run lutris instraller"}, + { .name = "info", .func = main_info, .description = "show some information about polecat" }, }; @@ -22,7 +23,7 @@ int main(int argc, char** argv) { for (int i = 0; i < ARRAY_LEN(main_commands); ++i) { - if (!strcmp(main_commands[i].name, argv[1])) return main_commands[i].func(argc, argv); + if (!strcmp(main_commands[i].name, argv[1])) return main_commands[i].func(argc-1, argv+1); } } |