add -f option to make adding files to the trx command line explicit (otherwise not usable on mac os x)
SVN-Revision: 4870
This commit is contained in:
parent
829c5acdd1
commit
7538551067
@ -89,7 +89,7 @@ void usage(void) __attribute__ (( __noreturn__ ));
|
||||
|
||||
void usage(void)
|
||||
{
|
||||
fprintf(stderr, "Usage: trx [-o outfile] [-m maxlen] [-a align] [-b offset] file [file [file]]\n");
|
||||
fprintf(stderr, "Usage: trx [-o outfile] [-m maxlen] [-a align] [-b offset] [-f file] [-f file [-f file]]\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
@ -122,8 +122,9 @@ int main(int argc, char **argv)
|
||||
in = NULL;
|
||||
i = 0;
|
||||
|
||||
while ((c = getopt(argc, argv, "-:o:m:a:b:")) != -1) {
|
||||
while ((c = getopt(argc, argv, "-:o:m:a:b:f:")) != -1) {
|
||||
switch (c) {
|
||||
case 'f':
|
||||
case 1:
|
||||
p->offsets[i++] = STORE32_LE(cur_len);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user