Rename the -t option to -o.

master
Albert Graef 2018-08-10 05:25:48 +02:00
parent 465a16cee6
commit 597847cece
3 changed files with 8 additions and 8 deletions

View File

@ -70,7 +70,7 @@
# messages, in order to translate MIDI input to be passed on to to other
# MIDI devices and applications. In fact, X KeySyms and MIDI messages
# can be mixed freely in the output. To enable this, invoke the program
# with the '-t' option. This creates a MIDI output port, which can then
# with the '-o' option. This creates a MIDI output port, which can then
# be hooked up to other Jack MIDI applications. (Otherwise, MIDI
# messages in the translations will just be ignored.)
@ -176,7 +176,7 @@
[MIDI]
# The special "MIDI" default section is only active when MIDI output is
# enabled (midizap -t). This allows you to translate midizap's MIDI
# enabled (midizap -o). This allows you to translate midizap's MIDI
# input for use with other MIDI devices and applications. Here's a
# simple example for illustration purposes, which shows how to map the
# MCU jog wheel to CC7, so that it can be used as a volume control.
@ -224,7 +224,7 @@
# keys in the middle octave are mapped to the cursor keys (Left, Up,
# Down, Right). Please note that most of these bindings, as well as the
# CC60 bindings above, will only be active when the [MIDI] default
# section above isn't used (invoke midizap without the -t option).
# section above isn't used (invoke midizap without the -o option).
C5 XK_Button_1
D5 XK_Button_2

View File

@ -480,9 +480,9 @@ handle_event(uint8_t *msg)
void help(char *progname)
{
fprintf(stderr, "Usage: %s [-h] [-t] [-r rcfile] [-d[rskj]]\n", progname);
fprintf(stderr, "Usage: %s [-h] [-o] [-r rcfile] [-d[rskj]]\n", progname);
fprintf(stderr, "-h print this message\n");
fprintf(stderr, "-t enable MIDI output\n");
fprintf(stderr, "-o enable MIDI output\n");
fprintf(stderr, "-r config file name (default: MIDIZAP_CONFIG_FILE variable or ~/.midizaprc)\n");
fprintf(stderr, "-d debug (r = regex, s = strokes, k = keys, j = jack; default: all)\n");
}
@ -506,12 +506,12 @@ main(int argc, char **argv)
uint8_t msg[3];
int opt, count = 0;
while ((opt = getopt(argc, argv, "htd::r:")) != -1) {
while ((opt = getopt(argc, argv, "hod::r:")) != -1) {
switch (opt) {
case 'h':
help(argv[0]);
exit(0);
case 't':
case 'o':
enable_jack_output = 1;
break;
case 'd':

View File

@ -125,7 +125,7 @@
Most of the notations for MIDI messages also carry over to the output
side, in order to translate MIDI input to MIDI output. To make this
work, you need to invoke the midizap program with the -t option, which
work, you need to invoke the midizap program with the -o option, which
equips the program with an additional MIDI output port, to which the
translated MIDI messages are sent. (Otherwise, MIDI messages in the
output translations will be ignored.)