Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-310

separate namespace options from tooloptions

    • Type: Icon: New Feature New Feature
    • Resolution: Duplicate
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      currently namespace options is embedded in the tooloptions struct.
      this is a problem because:

      • it forces mongostat to have arguments for --db and -c, which makes no sense.
      • it forces mongofiles to have a -c argument, which makes no sense because mongofiles only works within a database and not a single collection
      • probably other similar cases that i haven't thought of.

      we should probably just split the namespace options out, and have it be explicitly included only by the tools that need it.

            Assignee:
            Unassigned Unassigned
            Reporter:
            mikeo@mongodb.com Michael O'Brien
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: