diff --git a/resholve b/resholve index ff549df..09c5b1b 100755 --- a/resholve +++ b/resholve @@ -2512,35 +2512,52 @@ class ExternalCommandParsers(object): "flatpak", cls=PartialSurveyCommandParserForPossibleExec ) + # flatpak --help + generic.add_argument( + "-h", + "--help", + "--version", + "--default-arch", + "--supported-arches", + "--gl-drivers", + "--installations", + "--print-updated-env", + "--print-system-only", + "-v", + "--verbose", + "--ostree-verbose", + dest="skip" + action="store_true", + ) + no_positionals = make_command_parser( "flatpak", variant="no positional args", cls=PartialSurveyCommandParserForPossibleExec, ) - for parser in (no_positionals, generic): - # flatpak --help - parser.add_argument( - "-h", - "--help", - "--version", - "--default-arch", - "--supported-arches", - "--gl-drivers", - "--installations", - "--print-updated-env", - "--print-system-only", - "-v", - "--verbose", - "--ostree-verbose", - action="store_true", - ) + no_positionals.add_argument( + "-h", + "--help", + "--version", + "--default-arch", + "--supported-arches", + "--gl-drivers", + "--installations", + "--print-updated-env", + "--print-system-only", + "-v", + "--verbose", + "--ostree-verbose", + action="store_true", + ) + subparsers = generic.add_subparsers() update = subparsers.add_deadend_parser("update") return ( - generic, no_positionals, + generic, )