Browse Source

Cleanup

master
cancel 5 years ago
parent
commit
1469b39f73
  1. 7
      cli_main.c
  2. 6
      tui_main.c

7
cli_main.c

@ -5,8 +5,7 @@
#include "vmio.h" #include "vmio.h"
#include <getopt.h> #include <getopt.h>
static void usage(void) { static ORCA_NOINLINE void usage(void) { // clang-format off
// clang-format off
fprintf(stderr, fprintf(stderr,
"Usage: cli [options] infile\n\n" "Usage: cli [options] infile\n\n"
"Options:\n" "Options:\n"
@ -15,9 +14,7 @@ static void usage(void) {
" Default: 1\n" " Default: 1\n"
" -q or --quiet Don't print the result to stdout.\n" " -q or --quiet Don't print the result to stdout.\n"
" -h or --help Print this message and exit.\n" " -h or --help Print this message and exit.\n"
); );} // clang-format on
// clang-format on
}
int main(int argc, char **argv) { int main(int argc, char **argv) {
static struct option cli_options[] = {{"help", no_argument, 0, 'h'}, static struct option cli_options[] = {{"help", no_argument, 0, 'h'},

6
tui_main.c

@ -25,8 +25,7 @@ static int spin_track_timeout = 0;
#define staticni ORCA_NOINLINE static #define staticni ORCA_NOINLINE static
static void usage(void) { staticni void usage(void) { // clang-format off
// clang-format off
fprintf(stderr, fprintf(stderr,
"Usage: orca [options] [file]\n\n" "Usage: orca [options] [file]\n\n"
"General options:\n" "General options:\n"
@ -51,8 +50,7 @@ static void usage(void) {
" Set MIDI to be sent via OSC formatted for Plogue Bidule.\n" " Set MIDI to be sent via OSC formatted for Plogue Bidule.\n"
" The path argument is the path of the Plogue OSC MIDI device.\n" " The path argument is the path of the Plogue OSC MIDI device.\n"
" Example: /OSC_MIDI_0/MIDI\n" " Example: /OSC_MIDI_0/MIDI\n"
); // clang-format on );} // clang-format on
}
typedef enum { typedef enum {
Glyph_class_unknown, Glyph_class_unknown,

Loading…
Cancel
Save