From 39230f460418db5da54c7bab9b351c2f5e223f64 Mon Sep 17 00:00:00 2001 From: Duc Date: Sat, 20 Nov 2021 14:39:36 +0900 Subject: [PATCH] backward compatibility --- main.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/main.c b/main.c index 9d11c40..d5c4278 100755 --- a/main.c +++ b/main.c @@ -121,6 +121,8 @@ static struct option longOptions[] = { {"get_gpu_free_perc", no_argument, NULL, 0}, {"get_logdir", no_argument, NULL, 0}, {"set_logdir", required_argument, NULL, 0}, + {"set_gpu_wait", required_argument, NULL, 0}, + {"get_gpu_wait", no_argument, NULL, 0}, {NULL, 0, NULL, 0} }; @@ -158,6 +160,14 @@ void parse_opts(int argc, char **argv) { } else if (strcmp(longOptions[optionIdx].name, "set_logdir") == 0) { command_line.request = c_SET_LOGDIR; command_line.label = optarg; /* reuse this variable */ + } else if (strcmp(longOptions[optionIdx].name, "set_gpu_wait") == 0) { + printf("Due to some internal changes, this option has no functionality " + "and will be removed in the next release!\n"); + exit(0); + } else if (strcmp(longOptions[optionIdx].name, "get_gpu_wait") == 0) { + printf("Due to some internal changes, this option has no functionality " + "and will be removed in the next release!\n"); + exit(0); } else error("Wrong option %s.", longOptions[optionIdx].name); break;