Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-952

Support for passing arbitrary arguments to the -main invoked class when using the standalone mode is severely limited.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0-RC1
    • 2.0-RC2
    • Core
    • None

    Description

      Currently it is impossible to pass any arguments which start with the dash character through to the class specified by the "main" argument in standalone mode. The attached patch makes the command-line parser recognize the special getopt-style "--" argument which tells the parser to stop parsing for known arguments and simply pass all subsequent tokens on to the main method of the class being invoked. For the record, I am aware of the "args" option which looks to be intended for this purpose, but it doesn't work. Introducing the special double-dash operator seemed the best fix as it's a widely recognized idiom for precisely this functionality.

      Attachments

        1. IVY-952.patch
          2 kB
          Patrick Woodworth

        Activity

          People

            maartenc Maarten Coene
            sixseve Patrick Woodworth
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: