Changeset 2746


Ignore:
Timestamp:
03/01/16 11:05:02 (5 years ago)
Author:
julian.reschke@…
Message:

bap: update usage message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abnfparser/bap/main.c

    r1663 r2746  
    121121{
    122122  fprintf(stderr, "Bill's ABNF Parser version %s\n", versionstring);
    123   fprintf(stderr, "usage: bap [-cikntq] [ file ]\n");
     123  fprintf(stderr, "usage: bap [-cknqtx][-i rules][-l num][-S name][file]\n");
    124124  fprintf(stderr, " parse ABNF grammar from file or stdin\n");
    125   fprintf(stderr, " -c      : include rule definition line # in comment\n");
    126   fprintf(stderr, " -k      : add comments for printable characters specified as %%x\n");
    127   fprintf(stderr, " -n      : don't \"canonify\" result\n");
    128   fprintf(stderr, " -i file : read predefined rules from \"file\"\n");
    129   fprintf(stderr, " -t      : include type info in result\n");
    130   fprintf(stderr, " -q      : don't print parsed grammar\n");
    131   fprintf(stderr, " -S name : name rule as production start\n");
    132   fprintf(stderr, " -x      : output XML\n");
    133   fprintf(stderr, " -l num  : limit the length of each line to \"num\" char.\n");
     125  fprintf(stderr, " Input options:\n");
     126  fprintf(stderr, "  -c       include rule definition line # in comment\n");
     127  fprintf(stderr, "  -i file  read predefined rules from \"file\"\n");
     128  fprintf(stderr, "  -S name  name rule as production start\n");
     129  fprintf(stderr, " Output options:\n");
     130  fprintf(stderr, "  -k       add comments for printable characters specified as %%x\n");
     131  fprintf(stderr, "  -l num   limit the length of each line to \"num\" characters\n");
     132  fprintf(stderr, "  -n       don't \"canonify\" result\n");
     133  fprintf(stderr, "  -q       don't print parsed grammar\n");
     134  fprintf(stderr, "  -t       include type info in result\n");
     135  fprintf(stderr, "  -x       output XML\n");
    134136  exit(1);
    135137}
Note: See TracChangeset for help on using the changeset viewer.