]> git.ipfire.org Git - thirdparty/systemd.git/commit
journal-remote: convert to the new option parser
authorDaan De Meyer <daan@amutable.com>
Wed, 8 Apr 2026 14:31:00 +0000 (14:31 +0000)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 22 Apr 2026 18:05:38 +0000 (20:05 +0200)
commitfcff95831909f0ff9eb8be6ac61c411bc09fa566
treeb60139cc72dc58d9c3215aaa24434c242cbb6d08
parente57c8aa0a0cf95931c19c6cec335d7bed9ee8cbe
journal-remote: convert to the new option parser

Replace the getopt_long()-based parser with the FOREACH_OPTION /
OPTION_* macros from src/shared/options.h, mirroring the recent
conversions of nspawn and vmspawn. Each option's metadata (long
name, short name, metavar and help text) now lives next to its
parsing logic, and the --help text is generated from those
definitions via option_parser_get_help_table() instead of being
hard-coded.

Positional file arguments are collected via
option_parser_get_args() rather than strv_skip(argv, optind).
src/journal-remote/journal-remote-main.c