Skip to content

Commit

Permalink
swing
Browse files Browse the repository at this point in the history
  • Loading branch information
abathur committed Sep 20, 2023
1 parent adec64d commit 62375b0
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
4 changes: 2 additions & 2 deletions resholve
Original file line number Diff line number Diff line change
Expand Up @@ -1395,9 +1395,9 @@ class CommandParser(theirparse.ArgumentParser):
- version, variant, description of how they differ, platform
"""

def __init__(self, name, variant="generic"): # , **kwargs):
def __init__(self, name, variant="generic", **kwargs):
theirparse.ArgumentParser.__init__(
self, prog="{:} ({:})".format(name, variant), add_help=False # , **kwargs
self, prog="{:} ({:})".format(name, variant), add_help=False, **kwargs
)
self.register("action", "invocations", InvocationsAction)
# self.register("action", "invocation", InvocationAction)
Expand Down
15 changes: 13 additions & 2 deletions tests/helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,17 @@ require() {

parsers() {
cat parse_*.sh > parsed.sh
resholve --interpreter none --path "${PKG_PARSED}:${PKG_COREUTILS}" < parsed.sh > resolved.sh
bash -xe resolved.sh
case "$(uname -s)" in
Linux)
cat linux_parse_*.sh >> parsed.sh
;;
Darwin)
: pass for now
;;
*)
: pass for now
;;
esac
resholve --interpreter none --path "${PKG_PARSED}:${PKG_COREUTILS}" parsed.sh
bash -xe parsed.sh.resolved
}
1 change: 1 addition & 0 deletions tests/linux_parse_flatpak.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
flatpak update -v
6 changes: 0 additions & 6 deletions tests/parse_flatpak.sh

This file was deleted.

0 comments on commit 62375b0

Please sign in to comment.