From 694d32428311fa7261ee77d0489e28ed64009f36 Mon Sep 17 00:00:00 2001 From: Michal Josef Špaček Date: Mar 18 2022 21:46:23 +0000 Subject: Fix generation of optional parameters in man page There were change of string (from "optional arguments:" to "options:"), from which are optional arguments detected. Signed-off-by: Michal Josef Špaček --- diff --git a/pyrpkg/man_gen.py b/pyrpkg/man_gen.py index ba862d2..b73dded 100644 --- a/pyrpkg/man_gen.py +++ b/pyrpkg/man_gen.py @@ -116,7 +116,10 @@ def generate(parser, subparsers, identity, sourceurl): outflag = False for line in helptextsplit: - if line == "optional arguments:": + if line == "options:": + outflag = True + # Backward compatibility + elif line == "optional arguments:": outflag = True elif line == "": outflag = False