mirror of
https://github.com/onyx-and-iris/vmrcli.git
synced 2024-11-15 17:40:56 +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 kind = BANANA;
|
||||
|
||||
if (argc == 1)
|
||||
{
|
||||
help();
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
log_set_level(LOG_INFO);
|
||||
|
||||
while ((opt = getopt(argc, argv, "k:ihD:")) != -1)
|
||||
@ -102,7 +108,7 @@ void help()
|
||||
"Where: \n"
|
||||
"\ti: Enable interactive mode\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)
|
||||
|
Loading…
Reference in New Issue
Block a user