https://bugs.kde.org/show_bug.cgi?id=433693

            Bug ID: 433693
           Summary: minor issue, omitting argument to -application causes
                    incorrect error message
           Product: Snoretoast
           Version: 0.5.99
          Platform: Microsoft Windows
                OS: Microsoft Windows
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: vonr...@kde.org
          Reporter: sean.mcle...@gmail.com
  Target Milestone: ---

Created attachment 136217
  --> https://bugs.kde.org/attachment.cgi?id=136217&action=edit
Patch to correct this issue.

SUMMARY

When you invoke snoretoast with "-application" but without any arguments the
error message incorrectly refers to it as "-pipeName" and "-applicatzion"

STEPS TO REPRODUCE
1. invoke snoretoast with the -application switch but do not specify an
application

OBSERVED RESULT
Error displayed calls the switch "-pipeName" and "-applicatzion": 

PS> snoretoast -application
Missing argument to -pipeName.
Supply argument as -applicatzion "C:\foo.exe"

EXPECTED RESULT

PS> snoretoast -application
Missing argument to -application.
Supply argument as -application "C:\foo.exe"

SOFTWARE/OS VERSIONS
Windows: all
macOS: n/a
Linux/KDE Plasma: n/a
(available in About System)
KDE Plasma Version: n/a
KDE Frameworks Version: n/a
Qt Version: n/a

ADDITIONAL INFORMATION

The fix is really simple, the problematic lines can be seen at
https://invent.kde.org/libraries/snoretoast/-/blob/cbd1fa1b2eab79baf2d69c3285bc3ee019f9c833/src/main.cpp#L200-202
but I've attached a patch to correct it anyway.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to