diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2018-05-13 14:13:24 +1200 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2018-05-13 14:13:24 +1200 |
| commit | 5d9f5aa05a668e7dfef87b46d89dad2884df9d41 (patch) | |
| tree | bd5fe0300090045a7588ec18295ebff2038e64e8 /src/bin | |
| parent | 8396da188251ae8d6d2970a497ecdf07bf4ef04f (diff) | |
Replace `--write-mode` with `--emit`
cc #1976
Diffstat (limited to 'src/bin')
| -rw-r--r-- | src/bin/main.rs | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/bin/main.rs b/src/bin/main.rs index c903ba18561..b8f5225633f 100644 --- a/src/bin/main.rs +++ b/src/bin/main.rs @@ -111,6 +111,7 @@ fn make_opts() -> Options { found reverts to the input file path", "[Path for the configuration file]", ); + opts.optopt("", "emit", "What data to emit and how", WRITE_MODE_LIST); opts.optflag( "", "error-on-unformatted", @@ -120,13 +121,13 @@ fn make_opts() -> Options { opts.optopt( "", "file-lines", - "Format specified line ranges. See README for more detail on the JSON format.", + "Format specified line ranges. Run with `--help file-lines` for more detail.", "JSON", ); opts.optflagopt( "h", "help", - "Show this message or help about a specific topic: config or file-lines", + "Show this message or help about a specific topic: `config` or `file-lines`", "=TOPIC", ); opts.optopt( @@ -145,12 +146,6 @@ fn make_opts() -> Options { opts.optflag("v", "verbose", "Print verbose output"); opts.optflag("q", "quiet", "Print less output"); opts.optflag("V", "version", "Show version information"); - opts.optopt( - "", - "write-mode", - "How to write output (not usable when piping from stdin)", - WRITE_MODE_LIST, - ); opts } |
