----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/63733/#review200116 -----------------------------------------------------------
Ship it! Thanks for this Benno - had annoyed me for so long already :) - Till Toenshoff On March 23, 2018, 2:39 p.m., Benno Evers wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/63733/ > ----------------------------------------------------------- > > (Updated March 23, 2018, 2:39 p.m.) > > > Review request for mesos and Till Toenshoff. > > > Bugs: MESOS-8728 > https://issues.apache.org/jira/browse/MESOS-8728 > > > Repository: mesos > > > Description > ------- > > The current usage string for `mesos-master` comes in at 399 lines, and > for `mesos-agent` at 685 lines. Printing such a wall of text will > overflow almost any terminal window, making it necessary to scroll up > to see the actual error when invoking mesos with an incorrect command > line. > > > Diffs > ----- > > src/master/main.cpp 3d93fd4825f0f58fce664379e3337a61bb93aa0a > src/slave/main.cpp 67437272ee538dd2eae44f5664630cf7c930c23f > > > Diff: https://reviews.apache.org/r/63733/diff/2/ > > > Testing > ------- > > Started `mesos-agent` and `mesos-master` with an incorrect command-line. > > ``` > bevers@poincare:~/mesos/worktrees/usage/build$ ./src/mesos-master --foo > Failed to load unknown flag 'foo' > > See `mesos-master --help` for a list of supported flags. > bevers@poincare:~/mesos/worktrees/usage/build$ ./src/mesos-master > I0323 17:33:45.526222 19899 main.cpp:246] Build: 2018-03-22 17:04:18 by bevers > I0323 17:33:45.526304 19899 main.cpp:247] Version: 1.6.0 > I0323 17:33:45.536743 19899 main.cpp:346] Using 'HierarchicalDRF' allocator > E0323 17:33:45.536763 19899 main.cpp:361] EXIT with status 1: --work_dir > needed for replicated log based registry > ``` > > > Thanks, > > Benno Evers > >