27#include <lal/LALgetopt.h>
41"Usage: %s [option ...] --output filename inputfilename ...\n" \
43"The following options are recognized:\n" \
45" --output (required)\n" \
67 do switch(
c =
LALgetopt_long(argc, argv,
"", long_options, &option_index)) {
127int main(
int argc,
char *argv[])
129 char history[] =
"Created by " PACKAGE "-" VERSION
".";
133 struct FrFile *frfileout;
138 devnull = fopen(
"/dev/null",
"w");
139 FrLibIni(NULL,
options.
verbose || !devnull ? stderr : devnull, 0);
153 struct FrFile *frfilein;
154 struct FrameH *frame;
161 FrFileOEnd(frfileout);
166 while((frame = FrameRead(frfilein))) {
167 FrameWrite(frame, frfileout);
170 FrFileIEnd(frfilein);
173 FrFileOEnd(frfileout);
int LALgetopt_long(int argc, char *const *argv, const char *options, const struct LALoption *long_options, int *opt_index)
#define required_argument
int main(int argc, char *argv[])
static int print_usage(const char *prog)
static struct options parse_command_line(int argc, char *argv[])