Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-2513

command line help shows flags incorrectly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: FACT 4.0.13
    • Fix Version/s: FACT 4.0.15
    • Component/s: CLI
    • Labels:
      None
    • Template:
    • Epic Link:
    • Team:
      Night's Watch
    • Sub-team:
    • Method Found:
      Needs Assessment
    • Release Notes:
      Not Needed
    • QA Risk Assessment:
      Needs Assessment

      Description

      Running facter h to get online help shows single letter command line options (flags) without the preceding dash . Eg f instead of -f

      ~ $ facter -h
      Commands:
        facter --list-block-groups              # List block groups
        facter [options] [query] [query] [...]  #
        facter help [COMMAND]                   # Describe available commands or one specific command
       
      Options:
            [--color], [--no-color]                          # Enable color output.
        c, [--config=CONFIG]                                 # The location of the config file.
            [--custom-dir=CUSTOM_DIR]                        # A directory to use for custom facts.
        d, [--debug], [--no-debug]                           # Enable debug output.
            [--external-dir=EXTERNAL_DIR]                    # A directory to use for external facts.
            [--hocon], [--no-hocon]                          # Output in Hocon format.
        j, [--json], [--no-json]                             # Output in JSON format.
            [--list-block-groups], [--no-list-block-groups]  # List the names of all blockable fact groups.
            [--list-cache-groups], [--no-list-cache-groups]  # List the names of all cacheable fact groups.
        l, [--log-level=LOG_LEVEL]                           # Set logging level. Supported levels are: none, trace, debug, info, warn, error, and fatal.
            [--block], [--no-block]                          # Disable fact blocking.
            [--cache], [--no-cache]                          # Disable loading and refreshing facts from the cache
            [--custom-facts], [--no-custom-facts]            # Disable custom facts.
            [--external-facts], [--no-external-facts]        # Disable external facts.
            [--ruby], [--no-ruby]                            # Disable loading Ruby, facts requiring Ruby, and custom facts.
            [--trace], [--no-trace]                          # Enable backtraces for custom facts.
            [--verbose], [--no-verbose]                      # Enable verbose (info) output.
            [--show-legacy], [--no-show-legacy]              # Show legacy facts when querying all facts.
        y, [--yaml], [--no-yaml]                             # Output in YAML format.
            [--strict], [--no-strict]                        # Enable more aggressive error reporting.
        p, [--puppet], [--no-puppet]                         # Load the Puppet libraries, thus allowing Facter to load Puppet-specific facts.
      

        Attachments

          Activity

            People

            Assignee:
            sebastian.miclea Sebastian Miclea
            Reporter:
            jesse.reynolds Jesse Reynolds
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support