mirror of
https://github.com/onyx-and-iris/vmrcli.git
synced 2025-01-18 08:41:08 +00:00
change -p for -c, seems more intuitive
This commit is contained in:
parent
f87977165a
commit
8bdbfe9b04
@ -13,7 +13,7 @@
|
|||||||
## `Use`
|
## `Use`
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
./vmrcli.exe [-h] [-i] [-k] [-D] [-v] [-p] [-m] [-s] <api commands>
|
./vmrcli.exe [-h] [-i] [-k] [-D] [-v] [-c] [-m] [-s] <api commands>
|
||||||
```
|
```
|
||||||
|
|
||||||
Where:
|
Where:
|
||||||
@ -23,7 +23,7 @@ Where:
|
|||||||
- `k`: The kind of Voicemeeter (basic, banana or potato). Use this to launch the GUI.
|
- `k`: The kind of Voicemeeter (basic, banana or potato). Use this to launch the GUI.
|
||||||
- `D`: Set log level 0=TRACE, 1=DEBUG, 2=INFO, 3=WARN, 4=ERROR, 5=FATAL
|
- `D`: Set log level 0=TRACE, 1=DEBUG, 2=INFO, 3=WARN, 4=ERROR, 5=FATAL
|
||||||
- `v`: Enable extra console output (toggle, set messages)
|
- `v`: Enable extra console output (toggle, set messages)
|
||||||
- `p`: Load a user configuration (given the file name or a full path)
|
- `c`: Load a user configuration (given the file name or a full path)
|
||||||
- `m`: Launch the MacroButtons application
|
- `m`: Launch the MacroButtons application
|
||||||
- `s`: Launch the StreamerView application
|
- `s`: Launch the StreamerView application
|
||||||
|
|
||||||
|
22
src/vmrcli.c
22
src/vmrcli.c
@ -50,10 +50,10 @@ int main(int argc, char *argv[])
|
|||||||
bool iflag = false,
|
bool iflag = false,
|
||||||
mflag = false,
|
mflag = false,
|
||||||
sflag = false,
|
sflag = false,
|
||||||
pflag = false;
|
cflag = false;
|
||||||
int opt;
|
int opt;
|
||||||
int dvalue;
|
int dvalue;
|
||||||
char *pvalue;
|
char *cvalue;
|
||||||
enum kind kind = BANANAX64;
|
enum kind kind = BANANAX64;
|
||||||
|
|
||||||
if (argc == 1)
|
if (argc == 1)
|
||||||
@ -64,7 +64,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
log_set_level(LOG_WARN);
|
log_set_level(LOG_WARN);
|
||||||
|
|
||||||
while ((opt = getopt(argc, argv, "hk:msp:iD:v")) != -1)
|
while ((opt = getopt(argc, argv, "hk:msc:iD:v")) != -1)
|
||||||
{
|
{
|
||||||
switch (opt)
|
switch (opt)
|
||||||
{
|
{
|
||||||
@ -85,9 +85,9 @@ int main(int argc, char *argv[])
|
|||||||
case 's':
|
case 's':
|
||||||
sflag = true;
|
sflag = true;
|
||||||
break;
|
break;
|
||||||
case 'p':
|
case 'c':
|
||||||
pflag = true;
|
cflag = true;
|
||||||
pvalue = optarg;
|
cvalue = optarg;
|
||||||
break;
|
break;
|
||||||
case 'i':
|
case 'i':
|
||||||
iflag = true;
|
iflag = true;
|
||||||
@ -134,10 +134,10 @@ int main(int argc, char *argv[])
|
|||||||
run_voicemeeter(vmr, STREAMERVIEW);
|
run_voicemeeter(vmr, STREAMERVIEW);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pflag)
|
if (cflag)
|
||||||
{
|
{
|
||||||
log_info("Profile %s loaded", pvalue);
|
log_info("Profile %s loaded", cvalue);
|
||||||
set_parameter_string(vmr, "command.load", pvalue);
|
set_parameter_string(vmr, "command.load", cvalue);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (iflag)
|
if (iflag)
|
||||||
@ -172,14 +172,14 @@ int main(int argc, char *argv[])
|
|||||||
void help()
|
void help()
|
||||||
{
|
{
|
||||||
puts(
|
puts(
|
||||||
"Usage: ./vmrcli.exe [-h] [-i] [-k] [-D] [-v] [-p] [-m] [-s] <api commands>\n"
|
"Usage: ./vmrcli.exe [-h] [-i] [-k] [-D] [-v] [-c] [-m] [-s] <api commands>\n"
|
||||||
"Where: \n"
|
"Where: \n"
|
||||||
"\th: Prints the help message\n"
|
"\th: Prints the help message\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 log level 0=TRACE, 1=DEBUG, 2=INFO, 3=WARN, 4=ERROR, 5=FATAL\n"
|
"\tD: Set log level 0=TRACE, 1=DEBUG, 2=INFO, 3=WARN, 4=ERROR, 5=FATAL\n"
|
||||||
"\tv: Enable extra console output (toggle, set messages)\n"
|
"\tv: Enable extra console output (toggle, set messages)\n"
|
||||||
"\tp: Load a user configuration (given the file name or a full path)\n"
|
"\tc: Load a user configuration (given the file name or a full path)\n"
|
||||||
"\tm: Launch the MacroButtons application\n"
|
"\tm: Launch the MacroButtons application\n"
|
||||||
"\ts: Launch the StreamerView application");
|
"\ts: Launch the StreamerView application");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user