mirror of
https://github.com/flatpak/flatpak.git
synced 2026-06-26 17:26:50 -04:00
There are a couple related changes made here, with the intention of making it easier to implement additional features in the future: - Mutual exclusivity of --build-directory and app is better enforced both through types and at runtime. The types will let type checkers ensure that we cannot reach the run function without at least one of them being valid. At runtime, it no longer allows both to be specified, which could result in confusion over which takes precedence. - Instead of wrapping the entire program in a class, there is now only a small class that handles validation of the arguments and holding the data to be passed to run. This provides a better separation of concerns, with the argument parsing now being a little less tied to running the debugger.