Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-23668

scons abbreviated options do not work properly

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.7.0, 4.2.10, 4.4.2
    • Build
    • None
    • Fully Compatible
    • ALL
    • v4.4, v4.2
    • Execution Team 2020-08-10, Dev Platform 2020-09-07

    Description

      SCons apparently supports accepting unambiguous prefixes of valid options; see e.g. http://scons.org/doc/1.3.1/HTML/scons-api/SCons.compat._scons_optparse.OptionParser-class.html#_match_long_opt

      However, if you pass an unambiguous abbreviated option on the command line, scons accepts it but GetOption(name) still returns None when our SConstruct code asks for the fully specified option name.

      You can try this with --disable-warnings-as-errors:

      Example:
      $ scons mongod --disable-warnings-as-er

      Expected behavior:
      scons either returns an error, or proceeds normally as if --disable-warnings-as-errors had been passed on the command line.
      Actual behavior:
      scons proceeds normally as if --disable-warnings-as-errors had NOT been passed on the command line.

      Attachments

        Issue Links

          Activity

            People

              andrew.morrow@mongodb.com Andrew Morrow
              milkie@mongodb.com Eric Milkie
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: