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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8u40
    • None
    • docs
    • 8
    • generic
    • generic

      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);



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

              Created:
              Updated:
              Resolved: