Bug 461007 - Command line interface not aligned with general KDE practices and kf5
Summary: Command line interface not aligned with general KDE practices and kf5
Status: CLOSED FIXED
Alias: None
Product: ghostwriter
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: megan.conkle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-26 07:56 UTC by Sergio
Modified: 2023-04-23 00:43 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 23.04.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergio 2022-10-26 07:56:10 UTC
SUMMARY

When KDE programs are invoked from the shell, parsing their command line parameter and arguments they tend to conform to a uniform interface (see for instance `kf5options`). This includes support for some common options like `--help` or `--version`, etc.

As of today, `ghostwriter` is completely misaligned with respect to this expectation:

1. options starting with `-` or `--` are interpreted as arguments. Hence, typing `ghostwriter --help` results in ghostwriter trying to open a file called `--help`;

2. when an argument that corresponds to a non existing file is passed, rather than starting up with an empty file (as `kate` does, for instance), ghostwriter errors out because it cannot find the file.
Comment 1 megan.conkle 2022-10-26 19:29:18 UTC
Hello,

These issues were fixed in versions 2.1.5 and 2.2.0.

Thanks!
Comment 2 Sergio 2022-10-26 21:00:38 UTC
Sorry for the noise, then and thanks!