• Rikudou_Sage@lemmings.world
      link
      fedilink
      arrow-up
      5
      arrow-down
      2
      ·
      2 days ago

      Not always, way too often you just get a variation of “invalid option, use --help to get a list of options”

      How about you show me by default like most apps?

      • squaresinger@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        1 day ago

        They meant that you’d get the same message no matter what unrecognized option you use. So it’s not like they added a specific check that if you type in -h they will give you the message, but instead you get the same message for any unrecognized option.

        The thing in the OP only occurs if you type exit, so they specifically added that message to be shown when the interpreter clearly knows what you want, but you just didn’t say it exactly right.

          • squaresinger@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            1 day ago

            You aren’t wrong, it wouldn’t be bad for it to just print the help in that case, at least when running interactive.

            For automation, printing the full help of a more complex command would completely trash logs.