summaryrefslogtreecommitdiff
path: root/mongofiles
diff options
context:
space:
mode:
authormike o'brien <mpobrien005@gmail.com>2014-11-13 21:45:17 -0500
committermike o'brien <mpobrien005@gmail.com>2014-11-14 15:27:35 -0500
commiteb70dc3eb2c6683280cd0dc773c87229774cb6b7 (patch)
tree1bba40e305994ff1580c90fc19ab0db27f9d3bbf /mongofiles
parent0af49b09589ae692be9cc3c8989a2402922e3e24 (diff)
downloadmongo-eb70dc3eb2c6683280cd0dc773c87229774cb6b7.tar.gz
TOOLS-310 allow tools to disable groups of options when not needed
Former-commit-id: abcec264a8b7c4632709ce38c4e3923e47801d64
Diffstat (limited to 'mongofiles')
-rw-r--r--mongofiles/main/mongofiles.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/mongofiles/main/mongofiles.go b/mongofiles/main/mongofiles.go
index 82b61fca2e4..6026386a473 100644
--- a/mongofiles/main/mongofiles.go
+++ b/mongofiles/main/mongofiles.go
@@ -4,7 +4,7 @@ import (
"fmt"
"github.com/mongodb/mongo-tools/common/db"
"github.com/mongodb/mongo-tools/common/log"
- commonOpts "github.com/mongodb/mongo-tools/common/options"
+ commonopts "github.com/mongodb/mongo-tools/common/options"
"github.com/mongodb/mongo-tools/mongofiles"
"github.com/mongodb/mongo-tools/mongofiles/options"
"os"
@@ -27,7 +27,7 @@ const (
func main() {
// initialize command-line opts
- opts := commonOpts.New("mongofiles", Usage)
+ opts := commonopts.New("mongofiles", Usage, commonopts.EnabledOptions{Auth: true, Connection: true, Namespace: true})
storageOpts := &options.StorageOptions{}
opts.AddOptions(storageOpts)