# include // getopt # include "qmp3.hh" # include "qexception.hh" #ifdef NLS # include # include # define _(s) gettext (s) #else # define _(s) (s) #endif void usage () { cerr << ' ' << APPNAME << _(": extract and/or delete parts of a mp3 file\n"); cerr << _(" syntax: ") << APPNAME << _(" [option]... file\n"); cerr << _(" options:\n"); cerr << _(" -B, --set-begin : set the first frame from the beginning of the file\n"); cerr << _(" -b, --set-begin-from-eof : set the first frame from the end of the file\n"); cerr << _(" -d, --delete: deletes the fragment\n"); cerr << _(" -E, --set-end : set the last frame from the beginning of the file\n"); cerr << _(" -e, --set-end-from-eof : set the last frame from the end of the file\n"); cerr << _(" -h, --help: show this help and exit\n"); cerr << _(" -o, --output : output file where the fragment is stored\n"); cerr << _(" -s, --size : specifies the size of the cut\n"); cerr << _(" -S, --slice