diff options
author | Gabriel Russell <gabriel.russell@mongodb.com> | 2015-08-28 15:33:18 -0400 |
---|---|---|
committer | Gabriel Russell <gabriel.russell@mongodb.com> | 2015-09-01 18:47:11 -0400 |
commit | db809d9545006b57378b74759b89560083fc74b4 (patch) | |
tree | 08a2e9ae3c4e0123f8739b06d5adaee3384bef8b /mongodump/options.go | |
parent | 6da150012a776d7a16b2da03837e2639654777e4 (diff) | |
download | mongo-db809d9545006b57378b74759b89560083fc74b4.tar.gz |
TOOLS-846 provide value hints for argument taking options
Diffstat (limited to 'mongodump/options.go')
-rw-r--r-- | mongodump/options.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mongodump/options.go b/mongodump/options.go index b1efcf5957f..e3610612758 100644 --- a/mongodump/options.go +++ b/mongodump/options.go @@ -44,14 +44,14 @@ func (inputOptions *InputOptions) GetQuery() ([]byte, error) { // OutputOptions defines the set of options for writing dump data. type OutputOptions struct { - Out string `long:"out" short:"o" description:"output directory, or '-' for stdout (defaults to 'dump')" default-mask:"-"` + Out string `long:"out" value-name:"<directory-path>" short:"o" description:"output directory, or '-' for stdout (defaults to 'dump')"` Gzip bool `long:"gzip" description:"compress archive our collection output with Gzip"` Repair bool `long:"repair" description:"try to recover documents from damaged data files (not supported by all storage engines)"` Oplog bool `long:"oplog" description:"use oplog for taking a point-in-time snapshot"` - Archive string `long:"archive" optional:"true" optional-value:"-" description:"dump as an archive to the specified path. If flag is specified without a value, archive is written to stdout"` + Archive string `long:"archive" value-name:"<file-path>" optional:"true" optional-value:"-" description:"dump as an archive to the specified path. If flag is specified without a value, archive is written to stdout"` DumpDBUsersAndRoles bool `long:"dumpDbUsersAndRoles" description:"dump user and role definitions for the specified database"` - ExcludedCollections []string `long:"excludeCollection" description:"collection to exclude from the dump (may be specified multiple times to exclude additional collections)"` - ExcludedCollectionPrefixes []string `long:"excludeCollectionsWithPrefix" description:"exclude all collections from the dump that have the given prefix (may be specified multiple times to exclude additional prefixes)"` + ExcludedCollections []string `long:"excludeCollection" value-name:"<collection-name>" description:"collection to exclude from the dump (may be specified multiple times to exclude additional collections)"` + ExcludedCollectionPrefixes []string `long:"excludeCollectionsWithPrefix" value-name:"<collection-prefix>" description:"exclude all collections from the dump that have the given prefix (may be specified multiple times to exclude additional prefixes)"` } // Name returns a human-readable group name for output options. |