diff options
author | Kyle Erf <erf@mongodb.com> | 2015-01-26 16:33:20 -0500 |
---|---|---|
committer | Kyle Erf <erf@mongodb.com> | 2015-01-28 11:13:31 -0500 |
commit | bd895bc0ae17af6ab58363fc9c6a5c62d2ef6772 (patch) | |
tree | d4575b73c96e18488b3931f38eb66d12ddc91eed /mongoexport/options.go | |
parent | 7930aa5cd6086f052df1b95f476d8e228ed2428b (diff) | |
download | mongo-bd895bc0ae17af6ab58363fc9c6a5c62d2ef6772.tar.gz |
TOOLS-584 unify usage strings
Diffstat (limited to 'mongoexport/options.go')
-rw-r--r-- | mongoexport/options.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mongoexport/options.go b/mongoexport/options.go index da0c5bcfc4c..908e0ea9269 100644 --- a/mongoexport/options.go +++ b/mongoexport/options.go @@ -1,5 +1,11 @@ package mongoexport +var Usage = `<options> + +Export data from MongoDB in CSV or JSON format. + +See http://docs.mongodb.org/manual/reference/program/mongoexport/ for more information.` + type OutputFormatOptions struct { //Fields is an option to directly specify comma-separated fields to export to CSV Fields string `long:"fields" short:"f" description:"comma separated list of field names, e.g. -f name,age"` @@ -8,7 +14,7 @@ type OutputFormatOptions struct { FieldFile string `long:"fieldFile" description:"file with field names - 1 per line"` //Type selects the type of output to export as (json or csv) - Type string `long:"type" default:"json" default-mask:"-" description:"the output format, either JSON or CSV (defaults to 'json')"` + Type string `long:"type" default:"json" default-mask:"-" description:"the output format, either json or csv (defaults to 'json')"` //OutputFile specifies an output file path. OutputFile string `long:"out" short:"o" description:"output file; if not specified, stdout is used"` |