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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.0.8, 2.2.3, 2.4.1
    • Component/s: Admin
    • Environment:
      tested in osx and rhel 6.3
    • Fully Compatible
    • ALL
    • 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

      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

            Assignee:
            Unassigned Unassigned
            Reporter:
            ernie.hershey@mongodb.com Ernie Hershey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: