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

Command line parameters --help and --version should be processed before others

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Gone away
    • Affects Version/s: 2.0.8, 2.2.3, 2.4.1
    • Fix Version/s: None
    • Component/s: Admin
    • Environment:
      tested in osx and rhel 6.3
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      mongod --version --logpath /var/log/mongod/mongod.log
      mongod --help --logpath /var/log/mongod/mongod.log

      With logpath configured in /etc/mongod.conf:
      mongod --version --config /etc/mongod.conf
      mongod --help --config /etc/mongod.conf

      Show
      mongod --version --logpath /var/log/mongod/mongod.log mongod --help --logpath /var/log/mongod/mongod.log With logpath configured in /etc/mongod.conf: mongod --version --config /etc/mongod.conf mongod --help --config /etc/mongod.conf

      Description

      These command line calls should print version or help info instead of writing it to the log file.

      mongod --version --logpath /var/log/mongod/mongod.log
      mongod --help --logpath /var/log/mongod/mongod.log

      (or with logpath configured in /etc/mongod.conf)

      mongod --version --config /etc/mongod.conf
      mongod --help --config /etc/mongod.conf

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: