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

Facter 4 CLI does not accept concatenated short flags

    XMLWordPrintable

Details

    • 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.
    • Night's Watch
    • 5
    • NW - 2021-06-16
    • Needs Assessment
    • Known Issue
    • 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}}.
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support