enum optionIndex {
UNKNOWN, HELP
- ,UML,ERULE
,FICHIER,OUTPUT,INCLUDE
- ,PLANG,OPTMODE,COMMENT,CODEC,OPTSPLIT,OPTDBG,OPT_END};
+ ,PLANG,UML,ERULE,COMMENT,CODEC,OPTSPLIT
+ ,OPTMODE,OPTSTD,OPTDBG,OPT_END};
/*----------------------------------------------------------------------------*/
const option::Descriptor usage[] = {
{UNKNOWN, 0, "", "", option::Arg::None,"Welcome to asn1p compiler (c) aeb"
"Usage asn1p [options]\n\texample:"
" asn1p -e ber -f toto.asn1 -I[path]\n"},
{HELP, 0, "h", "help", option::Arg::None,"--help,-h \tPrint help and quit."},
- {UML, 0, "u", "uml" , option::Arg::Optional,"--uml,-u \t"
- "Generate UML model of asn1 model."},
- {ERULE, 0, "e", "ecoding_rule", option::Arg::Required,"--encoding_rule ,-e \t"
- " Encoding rules to use"
- " accepted ER: ber,per,oer,jer,xer "},
{FICHIER, 0, "f", "file", option::Arg::Required,"--file,-f \t"
"Asn1 or Mib input file to parse"},
{OUTPUT, 0, "o", "ouput", option::Arg::Required,"--output,-o \t"
"output file without extension to be generated"},
{INCLUDE, 0, "I", "include", option::Arg::Required,"--include,-I\t"
- "Include path to look for other asn1 files."},
+ "Include path to look for other asn1 files.\n"
+ "\nCode Generation Options\n"
+ "-----------------------"
+ },
{PLANG, 0, "l", "language", option::Arg::Required,"--language,-l\t"
"Programming language generated: cpp, uml, javascript, lds, sql [default: cpp]"},
- {OPTMODE, 0, "m", "mode", option::Arg::Required,"--mode,-m \t"
- "Parsing mode. asn1 or mib. Default is asn1"},
+ {UML, 0, "u", "uml" , option::Arg::Optional,"--uml,-u \t"
+ "Generate UML model of asn1 model."},
+ {ERULE, 0, "e", "ecoding_rule", option::Arg::Required,"--encoding_rule ,-e \t"
+ "Encoding rules to use"
+ " accepted ER: ber,per,oer,jer,xer "},
{COMMENT, 0, "n", "comment", option::Arg::Required,"--comment,-n\t"
- "(true or ON)/(false or OFF) generate comment in source def true"},
+ "Generate comment in source"
+ "(true or ON)/(false or OFF)"
+ " default true"},
{CODEC, 0, "c", "codec", option::Arg::Required,"--codec,-c\tCodecs"
" functions ON or OFF [default: OFF]"
},
{OPTSPLIT, 0, "s", "split", option::Arg::None,"--split,-s\t"
- " put codec code in separated cpp files."
- " Needed for huge definitions"
+ "Put codec code in separated cpp files."
+ " Needed for huge definitions\n"
+ "Parsing options\n"
+ "---------------"
},
- {OPTDBG, 0, "d", "debug", option::Arg::Required,"--debug,-d\tconsole=1 "
- " msg=1 debug messages in code parser=<1-8> parser debug traces"},
+ {OPTMODE, 0, "m", "mode", option::Arg::Required,"--mode,-m \t"
+ "Parsing mode. asn1 or mib. Default is asn1"
+ },
+ {OPTSTD, 0, "x", "standard", option::Arg::Required,"--standard,-x \t"
+ "Supported itu standards X.680 X.681 X.682 X.683\n"
+ "\tx.680 basic notation default on\n"
+ "\tx.681 Information object specification\n"
+ "\tx.682 Constraint specification\n"
+ "\tx.683 Parameterization of ASN1 Specification\n"
+ },
+ {OPTDBG, 0, "d", "debug", option::Arg::Required, "--debug,-d\t"
+ "Set debug options\n"
+ "\tconsole=1 output traces to stdout\n"
+ "\tmsg=1 debug messages in code\n"
+ "\tparser=<1-8> parser debug traces"},
{0,0,0,0,0,0}
};