diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2024-10-20 15:17:35 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2024-10-20 15:17:35 +0200 |
commit | f6e341bdbbec0d05a5c20baf79cd1704f6fa3df2 (patch) | |
tree | a6c40d81604a32ccacfa0a9df0616e547b077da2 /overlays | |
parent | 53bdb0113d8cd362dc4551296980fe13fe0a5afb (diff) | |
download | nixos-f6e341bdbbec0d05a5c20baf79cd1704f6fa3df2.tar nixos-f6e341bdbbec0d05a5c20baf79cd1704f6fa3df2.tar.gz nixos-f6e341bdbbec0d05a5c20baf79cd1704f6fa3df2.tar.bz2 nixos-f6e341bdbbec0d05a5c20baf79cd1704f6fa3df2.tar.xz nixos-f6e341bdbbec0d05a5c20baf79cd1704f6fa3df2.zip |
...
Diffstat (limited to 'overlays')
-rwxr-xr-x | overlays/worktime/worktime/__main__.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/overlays/worktime/worktime/__main__.py b/overlays/worktime/worktime/__main__.py index c2c1829c..362c8da4 100755 --- a/overlays/worktime/worktime/__main__.py +++ b/overlays/worktime/worktime/__main__.py | |||
@@ -829,13 +829,7 @@ def main(): | |||
829 | classification_parser.set_defaults(cmd = partial(classification, classification_name=classification_name)) | 829 | classification_parser.set_defaults(cmd = partial(classification, classification_name=classification_name)) |
830 | args = parser.parse_args() | 830 | args = parser.parse_args() |
831 | 831 | ||
832 | args.cmd( | 832 | args.cmd(**vars(args)) |
833 | **{ | ||
834 | k: v | ||
835 | for k, v in vars(args).items() | ||
836 | if k in signature(args.cmd).parameters.keys() | ||
837 | } | ||
838 | ) | ||
839 | 833 | ||
840 | if __name__ == "__main__": | 834 | if __name__ == "__main__": |
841 | sys.exit(main()) | 835 | sys.exit(main()) |