From ca3609970c04e16936cbc9e24e2bf113a83cf0eb Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Mon, 12 Oct 2020 21:14:29 +0200 Subject: modify argc and argv for help messages like all other function calls --- src/dxvk.c | 2 +- src/lutris.c | 2 +- src/main.c | 2 +- src/wine.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dxvk.c b/src/dxvk.c index b4b4fd9..cf4dcb3 100644 --- a/src/dxvk.c +++ b/src/dxvk.c @@ -26,7 +26,7 @@ int dxvk(int argc, char** argv) } } - return dxvk_help(argc, argv); + return dxvk_help(argc-1, argv+1); } diff --git a/src/lutris.c b/src/lutris.c index aa3e085..db4da4c 100644 --- a/src/lutris.c +++ b/src/lutris.c @@ -25,7 +25,7 @@ int lutris(int argc, char** argv) } } - return lutris_help(argc, argv); + return lutris_help(argc-1, argv+1); } diff --git a/src/main.c b/src/main.c index 03dc73c..6268543 100644 --- a/src/main.c +++ b/src/main.c @@ -30,7 +30,7 @@ int main(int argc, char** argv) } } - return main_help(argc, argv); + return main_help(argc-1, argv+1); } int main_info(int argc, char** argv) diff --git a/src/wine.c b/src/wine.c index 4a2b10e..596617e 100644 --- a/src/wine.c +++ b/src/wine.c @@ -36,7 +36,7 @@ int wine(int argc, char** argv) } - return wine_help(argc, argv); + return wine_help(argc-1, argv+1); } int wine_download(int argc, char** argv) -- cgit v1.2.3