mirror of
https://github.com/onyx-and-iris/vmrcli.git
synced 2025-01-18 16:51:08 +00:00
print help() if only program name passed
This commit is contained in:
parent
7edb4df30e
commit
6373d78c52
@ -39,6 +39,12 @@ int main(int argc, char *argv[])
|
|||||||
int dvalue;
|
int dvalue;
|
||||||
int kind = BANANA;
|
int kind = BANANA;
|
||||||
|
|
||||||
|
if (argc == 1)
|
||||||
|
{
|
||||||
|
help();
|
||||||
|
return EXIT_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
log_set_level(LOG_INFO);
|
log_set_level(LOG_INFO);
|
||||||
|
|
||||||
while ((opt = getopt(argc, argv, "k:ihD:")) != -1)
|
while ((opt = getopt(argc, argv, "k:ihD:")) != -1)
|
||||||
@ -102,7 +108,7 @@ void help()
|
|||||||
"Where: \n"
|
"Where: \n"
|
||||||
"\ti: Enable interactive mode\n"
|
"\ti: Enable interactive mode\n"
|
||||||
"\tk: The kind of Voicemeeter (basic, banana, potato)\n"
|
"\tk: The kind of Voicemeeter (basic, banana, potato)\n"
|
||||||
"\tD: Set Debug level 0=TRACE, 1=DEBUG, 2=INFO, 3=WARN, 4=ERROR, 5=FATAL");
|
"\tD: Set log level 0=TRACE, 1=DEBUG, 2=INFO, 3=WARN, 4=ERROR, 5=FATAL");
|
||||||
}
|
}
|
||||||
|
|
||||||
int set_kind(char *kval)
|
int set_kind(char *kval)
|
||||||
|
Loading…
Reference in New Issue
Block a user