You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Bernd Mathiske (JIRA)" <ji...@apache.org> on 2015/05/29 17:12:17 UTC
[jira] [Updated] (MESOS-2766) Add to FlagsBase the default --help
behavior
[ https://issues.apache.org/jira/browse/MESOS-2766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bernd Mathiske updated MESOS-2766:
----------------------------------
Assignee: Marco Massenzio
> Add to FlagsBase the default --help behavior
> --------------------------------------------
>
> Key: MESOS-2766
> URL: https://issues.apache.org/jira/browse/MESOS-2766
> Project: Mesos
> Issue Type: Bug
> Components: stout
> Reporter: Marco Massenzio
> Assignee: Marco Massenzio
> Priority: Minor
> Labels: tech-debt
>
> In every "launcher" file (ie, those containing some variation on {{main()}}) there is a minor variation on:
> {code}
> if (flags.help) {
> cout << flags.usage() << endl;
> // arguably this is not an error: the user asked for help,
> // and she got it: // the program execution ought to be
> // considered successful.
> return EXIT_SUCCESS;
> }
> {code}
> As this is default behavior, and we've added support for the {{--help}} flag in the {{BaseFlags}} class, we should add this too there and remove it from everywhere else.
> This follows the DRY principle.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)