src/jdk/nashorn/internal/runtime/resources/Options.properties

Print this page




  42 #
  43 # Which option is "xhelp".
  44 #
  45 nashorn.options.xhelp.key = nashorn.option.xhelp
  46 
  47 #
  48 # Which option is "D".
  49 #
  50 nashorn.options.D.key = nashorn.option.D
  51 
  52 ##
  53 ## Grammar: at least short or long form. Arguments are optional, in that case they are given as
  54 ##
  55 ## params - a description of the parameters for command line usage
  56 ## name - the name of the option, e.g. "--long-name"
  57 ## short_name - the short name of the option, e.g. "-l"
  58 ## type - the type of the option, currently allowed: boolean, integer, string, log, timezone. defaults to boolean if left out
  59 ## is_undocumented - should this option never appear in the online help. defaults to no.
  60 ## desc - description of what the option does
  61 ## default - default value of the option. e.g. debug.lines is true by default. Not set means option not available by default
  62 ## dependency - does this arg imply another arg, e.g. scripting -> anon-functions
  63 ## confict - does this arg conflict with another arg e.g trace && instrument
  64 ## value_next_arg - is the opton's value passed as next argument in command line?
  65 ##
  66 ## At least short_name or name needs to be in place for an argument descriptor to be valid.
  67 
  68 nashorn.option.help = {                       \
  69     name="-help",                             \
  70     short_name="-h",                          \
  71     desc="Print help for command line flags." \
  72 }
  73 
  74 nashorn.option.xhelp = {                               \
  75     name="-xhelp",                                     \
  76     is_undocumented=true,                              \
  77     desc="Print extended help for command line flags." \
  78 }
  79 
  80 nashorn.option.anon.functions = {                \
  81     name="--anon-functions",                     \
  82     short_name="-af",                            \
  83     is_undocumented=true,                        \
  84     desc="Always allow functions as statements." \
  85 }
  86 
  87 nashorn.option.class.cache.size ={                            \
  88     name="--class-cache-size",                                \
  89     short_name="--ccs",                                       \
  90     desc="Size of the Class cache size per global scope.",    \
  91     is_undocumented=true,                                     \
  92     type=Integer,                                             \
  93     default=50                                                \
  94 }
  95 
  96 nashorn.option.classpath ={                                   \
  97     name="-classpath",                                        \
  98     short_name="-cp",                                         \
  99     desc="-cp path. Specify where to find user class files.", \
 100     value_next_arg=true,                                      \
 101     type=String                                               \
 102 }
 103 
 104 nashorn.option.compile.only = {       \
 105     name="--compile-only",            \
 106     short_name="-co",                 \
 107     is_undocumented=true,             \
 108     desc="Compile without running.",  \
 109     type=Boolean                      \


 184     name="--debug-locals",                                \
 185     is_undocumented=true,                                 \
 186     desc="Generate local variable table in .class files." \
 187 }
 188 
 189 nashorn.option.lazy.compilation = {                                                                      \
 190     name="--lazy-compilation",                                                                           \
 191     is_undocumented=true,                                                                                \
 192     desc="EXPERIMENTAL: Use lazy code generation strategies - do not compile the entire script at once." \
 193 }
 194 
 195 nashorn.option.loader.per.compile = {              \
 196     name="--loader-per-compile",                   \
 197     is_undocumented=true,                          \
 198     desc="Create a new class loader per compile.", \
 199     default=true                                   \
 200 }
 201 
 202 nashorn.option.no.syntax.extensions = {            \
 203     name="--no-syntax-extensions",                 \
 204     short_name="--nse",                            \
 205     is_undocumented=true,                          \
 206     desc="No non-standard syntax extensions",      \
 207     default=-anon-functions=false                  \
 208 }
 209 
 210 nashorn.option.package = {                                     \
 211     name="--package",                                          \
 212     is_undocumented=true,                                      \
 213     desc="Package to which generated .class files are added.", \
 214     params="<package>",                                        \
 215     type=String,                                               \
 216     default=""                                                 \
 217 }
 218 
 219 nashorn.option.parse.only = {       \
 220     name="--parse-only",            \
 221     is_undocumented=true,           \
 222     desc="Parse without compiling." \
 223 }
 224 
 225 nashorn.option.profile.callsites = {   \
 226     name="--profile-callsites",        \
 227     short_name="-pcs",                 \


 279 
 280 nashorn.option.range.analysis = { \
 281     name="--range-analysis",      \
 282     is_undocumented=true,         \
 283     desc="Do range analysis using known compile time types, and try to narrow number types" \
 284 }    
 285 
 286 nashorn.option.D = {                                                          \
 287     name="-D",                                                                \
 288     desc="-Dname=value. Set a system property. This option can be repeated.", \
 289     type=String                                                               \
 290 }
 291 
 292 nashorn.option.strict = {              \
 293     name="-strict",                    \
 294     desc="Run scripts in strict mode." \
 295 }
 296 
 297 nashorn.option.scripting = {            \
 298     name="-scripting",                  \
 299     desc="Enable scripting features.",  \
 300     dependency="--anon-functions=true"  \
 301 }
 302 
 303 nashorn.option.specialize.calls = {                                                \
 304     name="--specialize-calls",                                                     \
 305     is_undocumented=true,                                                          \
 306     type=String,                                                                   \
 307     params="[=function_1,...,function_n]",                                         \
 308     desc="Specialize all or a set of method according to callsite parameter types" \
 309 }
 310 
 311 nashorn.option.stdout = {                                               \
 312     name="--stdout",                                                    \
 313     is_undocumented=true,                                               \
 314     type=String,                                                        \
 315     params="<output console>",                                          \
 316     desc="Redirect stdout to a filename or to another tty, e.g. stderr" \
 317 }
 318 
 319 nashorn.option.stderr = {                                               \
 320     name="--stderr",                                                    \




  42 #
  43 # Which option is "xhelp".
  44 #
  45 nashorn.options.xhelp.key = nashorn.option.xhelp
  46 
  47 #
  48 # Which option is "D".
  49 #
  50 nashorn.options.D.key = nashorn.option.D
  51 
  52 ##
  53 ## Grammar: at least short or long form. Arguments are optional, in that case they are given as
  54 ##
  55 ## params - a description of the parameters for command line usage
  56 ## name - the name of the option, e.g. "--long-name"
  57 ## short_name - the short name of the option, e.g. "-l"
  58 ## type - the type of the option, currently allowed: boolean, integer, string, log, timezone. defaults to boolean if left out
  59 ## is_undocumented - should this option never appear in the online help. defaults to no.
  60 ## desc - description of what the option does
  61 ## default - default value of the option. e.g. debug.lines is true by default. Not set means option not available by default
  62 ## dependency - does this arg imply another arg.
  63 ## confict - does this arg conflict with another arg e.g trace && instrument
  64 ## value_next_arg - is the opton's value passed as next argument in command line?
  65 ##
  66 ## At least short_name or name needs to be in place for an argument descriptor to be valid.
  67 
  68 nashorn.option.help = {                       \
  69     name="-help",                             \
  70     short_name="-h",                          \
  71     desc="Print help for command line flags." \
  72 }
  73 
  74 nashorn.option.xhelp = {                               \
  75     name="-xhelp",                                     \
  76     is_undocumented=true,                              \
  77     desc="Print extended help for command line flags." \
  78 }
  79 







  80 nashorn.option.class.cache.size ={                            \
  81     name="--class-cache-size",                                \
  82     short_name="-ccs",                                        \
  83     desc="Size of the Class cache size per global scope.",    \
  84     is_undocumented=true,                                     \
  85     type=Integer,                                             \
  86     default=50                                                \
  87 }
  88 
  89 nashorn.option.classpath ={                                   \
  90     name="-classpath",                                        \
  91     short_name="-cp",                                         \
  92     desc="-cp path. Specify where to find user class files.", \
  93     value_next_arg=true,                                      \
  94     type=String                                               \
  95 }
  96 
  97 nashorn.option.compile.only = {       \
  98     name="--compile-only",            \
  99     short_name="-co",                 \
 100     is_undocumented=true,             \
 101     desc="Compile without running.",  \
 102     type=Boolean                      \


 177     name="--debug-locals",                                \
 178     is_undocumented=true,                                 \
 179     desc="Generate local variable table in .class files." \
 180 }
 181 
 182 nashorn.option.lazy.compilation = {                                                                      \
 183     name="--lazy-compilation",                                                                           \
 184     is_undocumented=true,                                                                                \
 185     desc="EXPERIMENTAL: Use lazy code generation strategies - do not compile the entire script at once." \
 186 }
 187 
 188 nashorn.option.loader.per.compile = {              \
 189     name="--loader-per-compile",                   \
 190     is_undocumented=true,                          \
 191     desc="Create a new class loader per compile.", \
 192     default=true                                   \
 193 }
 194 
 195 nashorn.option.no.syntax.extensions = {            \
 196     name="--no-syntax-extensions",                 \
 197     short_name="-nse",                             \
 198     is_undocumented=true,                          \
 199     desc="No non-standard syntax extensions",      \
 200     default=false                                  \
 201 }
 202 
 203 nashorn.option.package = {                                     \
 204     name="--package",                                          \
 205     is_undocumented=true,                                      \
 206     desc="Package to which generated .class files are added.", \
 207     params="<package>",                                        \
 208     type=String,                                               \
 209     default=""                                                 \
 210 }
 211 
 212 nashorn.option.parse.only = {       \
 213     name="--parse-only",            \
 214     is_undocumented=true,           \
 215     desc="Parse without compiling." \
 216 }
 217 
 218 nashorn.option.profile.callsites = {   \
 219     name="--profile-callsites",        \
 220     short_name="-pcs",                 \


 272 
 273 nashorn.option.range.analysis = { \
 274     name="--range-analysis",      \
 275     is_undocumented=true,         \
 276     desc="Do range analysis using known compile time types, and try to narrow number types" \
 277 }    
 278 
 279 nashorn.option.D = {                                                          \
 280     name="-D",                                                                \
 281     desc="-Dname=value. Set a system property. This option can be repeated.", \
 282     type=String                                                               \
 283 }
 284 
 285 nashorn.option.strict = {              \
 286     name="-strict",                    \
 287     desc="Run scripts in strict mode." \
 288 }
 289 
 290 nashorn.option.scripting = {            \
 291     name="-scripting",                  \
 292     desc="Enable scripting features."   \

 293 }
 294 
 295 nashorn.option.specialize.calls = {                                                \
 296     name="--specialize-calls",                                                     \
 297     is_undocumented=true,                                                          \
 298     type=String,                                                                   \
 299     params="[=function_1,...,function_n]",                                         \
 300     desc="Specialize all or a set of method according to callsite parameter types" \
 301 }
 302 
 303 nashorn.option.stdout = {                                               \
 304     name="--stdout",                                                    \
 305     is_undocumented=true,                                               \
 306     type=String,                                                        \
 307     params="<output console>",                                          \
 308     desc="Redirect stdout to a filename or to another tty, e.g. stderr" \
 309 }
 310 
 311 nashorn.option.stderr = {                                               \
 312     name="--stderr",                                                    \