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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 8u40
    • Affects Version/s: None
    • Component/s: 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);



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

              Created:
              Updated:
              Resolved: