- int mode = MODE_NONE, verbose = 0;
- const char *name = "stdin";
- FILE *f = stdin;
- int opt;
-
- static const char *sopts = "lxf:i:vV";
- static const struct option lopts[] = {
- { "list", 0, NULL, 'l' },
- { "extract", 0, NULL, 'x' },
-
- { "file", 1, NULL, 'f' },
- { "index", 1, NULL, 'i' },
+ int mode = MODE_NONE, verbose = 0, opt, rc = EXIT_FAILURE;
+ struct lbx_pipe_state stdin_handle = { .f = stdin };
+ const char *file = NULL;
+ struct lbx *lbx;