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

Facter 4 CLI does not accept concatenated short flags

    XMLWordPrintable

    Details

    • Template:
    • Acceptance Criteria:
      Hide

      Combinations of short flags should work, eg -jp, -jd
      At least all combinations that worked on Facter 3 should work on Facter 4 also.

      Show
      Combinations of short flags should work, eg -jp, -jd At least all combinations that worked on Facter 3 should work on Facter 4 also.
    • Team:
      Night's Watch
    • Story Points:
      5
    • Sprint:
      NW - 2021-06-16
    • Method Found:
      Needs Assessment
    • Release Notes:
      Known Issue
    • Release Notes Summary:
      Facter 3 allowed short flags to be combined, such as {{-jp}} or {{-jd}}. In Facter 4, short flags should be declared separately, such as {{-j -p}} or {{-j -d}}.
    • QA Risk Assessment:
      Needs Assessment

      Description

      Trying to run `facter -jp` or `facter -dv` does not work, resulting in an error:

      [2021-05-24 10:34:46.955480 ] ERROR Facter::OptionsValidator - unrecognised option '-p'
      

      Some of the combinations works, for example `facter -jd`

      At the first glance seems that options defined with class_option can be combined, but the ones defined with a specific mapping error out.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dorin.pleava Dorin Pleava
              Reporter:
              gheorghe.popescu Gheorghe Popescu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support