From 091ab3894c68d6055f1600df4803053cd33cd498 Mon Sep 17 00:00:00 2001 From: Marc Date: Fri, 7 Oct 2022 10:15:19 +0200 Subject: [PATCH] refactored usage and options --- src/main.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/main.c b/src/main.c index d6bbbbf..c167e72 100644 --- a/src/main.c +++ b/src/main.c @@ -47,15 +47,20 @@ static GList * listFilesInFolder(const char * path) { static int usage() { printf("Use --list-games or -l to list compatible games\n"); + + printf("Use --bind or -d to deploy the mods for the game\n"); + printf("Use --unbind to rollback a deployment\n"); + printf("Use --add or -a to add a mod to a game\n"); + printf("Use --remove or -r to remove a mod\n"); + printf("Use --fomod to create a new mod using the result from the FOMod\n"); + printf("Use --list-mods or -m to list all mods for a game\n"); printf("Use --install or -i to add a mod to a game\n"); printf("Use --uninstall or -u to uninstall a mod from a game\n"); - printf("Use --remove or -r to remove a mod\n"); - printf("Use --deploy or -d to deploy the mods for the game\n"); - printf("Use --unbind to rollback a deployment\n"); - printf("Use --fomod to create a new mod using the result from the FOMod\n"); + printf("Use --swap MODID B> to swap two mod in the loading order\n"); + printf("Use --version or -v to get the version number\n"); return EXIT_FAILURE; } @@ -576,7 +581,7 @@ int main(int argc, char ** argv) { else if(strcmp(argv[1], "--uninstall") == 0 || strcmp(argv[1], "-u") == 0) returnValue = installAndUninstallMod(argc, argv, false); - else if(strcmp(argv[1], "--deploy") == 0 || strcmp(argv[1], "-d") == 0) + else if(strcmp(argv[1], "--bind") == 0 || strcmp(argv[1], "-d") == 0) returnValue = deploy(argc, argv); else if(strcmp(argv[1], "--unbind") == 0)