Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-5640

Unify the help info for master/agent flags

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Currently, in master/flags.cpp, some flags end up with a "\n" while some not, this caused the output not consistent.

      --[no-]hostname_lookup                                                         Whether we should execute a lookup to find out the server's hostname,
                                                                                       if not explicitly set (via, e.g., `--hostname`).
                                                                                       True by default; if set to `false` it will cause Mesos
                                                                                       to use the IP address, unless the hostname is explicitly set. (default: true)
        --http_authenticators=VALUE                                                    HTTP authenticator implementation to use when handling requests to
                                                                                       authenticated endpoints. Use the default
                                                                                       `basic`, or load an alternate
                                                                                       HTTP authenticator module using `--modules`.
      
                                                                                       Currently there is no support for multiple HTTP authenticators. (default: basic)
        --http_framework_authenticators=VALUE                                          HTTP authenticator implementation to use when authenticating HTTP
                                                                                       frameworks. Use the
                                                                                       `basic` authenticator or load an
                                                                                       alternate authenticator module using `--modules`.
                                                                                       Must be used in conjunction with `--http_authenticate_frameworks`.
      

      I think we should follow the linux "man command" format by adding "\n" to all flags.

      The following is a sample output for "man ls".

       -@      Display extended attribute keys and sizes in long (-l) output.
      
           -1      (The numeric digit ``one''.)  Force output to be one entry per line.  This is the default when output is not to a terminal.
      
           -A      List all entries except for . and ...  Always set for the super-user.
      
           -a      Include directory entries whose names begin with a dot (.).
      
           -B      Force printing of non-printable characters (as defined by ctype(3) and current locale settings) in file names as \xxx, where xxx is the numeric value of the character
                   in octal.
      
           -b      As -B, but use C escape codes whenever possible.
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            gyliu Guangya Liu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: