Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8038294

Missing documentation for $OPTIONS in "Nashorn and Shell scripting" guide

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8u40
    • Component/s: docs
    • Labels:
    • Subcomponent:
    • Introduced In Version:
      8
    • CPU:
      generic
    • OS:
      generic

      Description

      Doc: http://docs.oracle.com/javase/8/docs/technotes/guides/scripting/nashorn/shell.html

      Section: 4.4 Global Objects

      This section misses $OPTIONS object.

      $OPTIONS

      This object exposes command line options passed to nashorn "command line".

          jjs> print("-scripting = " + $OPTIONS._scripting);
          jjs> print("--compile-only = " + $OPTIONS._compile_only);
          jjs> print("-timezone = " + $OPTIONS._timezone.ID);



        Attachments

          Activity

            People

            Assignee:
            rgoyal Ram Goyal (Inactive)
            Reporter:
            sundar Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: