Bug 461007

Summary: Command line interface not aligned with general KDE practices and kf5
Product: [Applications] ghostwriter Reporter: Sergio <sergio.callegari>
Component: generalAssignee: megan.conkle
Status: CLOSED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 23.04.0
Sentry Crash Report:

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!