Bug 453490 - command line option '--new-session' throws an error on unknown option
Summary: command line option '--new-session' throws an error on unknown option
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: sessions (show other bugs)
Version: 22.04.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-07 08:27 UTC by Christian Hartmann
Modified: 2022-05-08 07:38 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 22.08.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Hartmann 2022-05-07 08:27:15 UTC
SUMMARY
***
command line option '--new-session' as stated in man page throws an error:  kate: Unknown option 'new-session'.
***


STEPS TO REPRODUCE
1. Open Terminal
2. Enter: kate --new-session

OBSERVED RESULT
kate: Unknown option 'new-session'.

EXPECTED RESULT
Kate starting with a new (unnamed) session

SOFTWARE/OS VERSIONS
Windows: -
macOS: -
Linux/KDE Plasma: Neon 5.24
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
The man page states:
--startanon
           Start Kate with a new anonymous session, implies -n (deprecated).
--new-session
           Start Kate with a new anonymous session, implies -n.

so either the man page or source code might get adjusted
Comment 1 Christian Hartmann 2022-05-07 08:27:35 UTC
would be happy to to walk the road further down one way or the other, but uncertain about the direction
Comment 2 Christoph Cullmann 2022-05-07 17:38:45 UTC
Git commit 03e1a3a709eea739c2994eab698558a3a9756cb6 by Christoph Cullmann.
Committed on 07/05/2022 at 17:37.
Pushed by cullmann into branch 'master'.

fix man page, remove --new-session

--startanon is still the right command line parameter

M  +0    -5    doc/kate/man-kate.1.docbook

https://invent.kde.org/utilities/kate/commit/03e1a3a709eea739c2994eab698558a3a9756cb6
Comment 3 Christoph Cullmann 2022-05-07 17:39:25 UTC
Hi, good catch.

One shall use --startanon, --new-session isn't there and the other one isn't deprecated.

Fixed the man page for future releases.
Comment 4 Christian Hartmann 2022-05-08 07:38:22 UTC
that was quick! great!