Skip to content

Commit

Permalink
swing 6
Browse files Browse the repository at this point in the history
  • Loading branch information
abathur committed Feb 16, 2024
1 parent 22e422a commit d1b0ed5
Showing 1 changed file with 35 additions and 18 deletions.
53 changes: 35 additions & 18 deletions resholve
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)


Expand Down

0 comments on commit d1b0ed5

Please sign in to comment.