diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2022-09-11 14:39:24 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2022-09-11 14:39:24 +0200 |
commit | 37de0cc7b0eeeefcc25173913faaefa2a7673d2c (patch) | |
tree | 33a216d1c211e00aff2035e929d304768e5064e1 /src/cli/commands.c | |
parent | 7809edab2aab5701f7be3f278b10e030e944477e (diff) | |
download | OFQT-37de0cc7b0eeeefcc25173913faaefa2a7673d2c.tar.gz OFQT-37de0cc7b0eeeefcc25173913faaefa2a7673d2c.zip |
rename force update to verify, reorder updates, return rename retval
Diffstat (limited to 'src/cli/commands.c')
-rw-r--r-- | src/cli/commands.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cli/commands.c b/src/cli/commands.c index 30d3bca..9ff4791 100644 --- a/src/cli/commands.c +++ b/src/cli/commands.c @@ -104,13 +104,13 @@ static int install(int c, char** v) static int update(int c, char** v) { int exit_val = EXIT_SUCCESS; - int force = 0; + int verify = 0; char* of_dir = NULL; char* remote = NULL; for (int i = 1; i < c; ++i) { - if (!strcmp(v[i], "--force")) - force = 1; + if (!strcmp(v[i], "--verify")) + verify = 1; else if (!strcmp(v[i], "--dir")) { if (!v[++i]) @@ -138,7 +138,7 @@ static int update(int c, char** v) puts( "OFCL update\n" - "\t--force\t\tforce update\n" + "\t--verify\t\tverify game files\n" "\t--dir\t\tspecify where to download OpenFortress to\n" "\t--remote\tspecify the server to use\n" "\t--help\t\tshows this text" @@ -151,7 +151,7 @@ static int update(int c, char** v) of_dir = getOpenFortressDir(); int local_rev = getLocalRevision(of_dir); - if (force) + if (verify) { local_rev = 0; } |