xiwrap

slightly higher-level container setup utility
git clone https://git.ce9e.org/xiwrap.git

commit
99131d8481529c143f148f7d7ebe19bdd3193057
parent
59d8b1612963bad68603a3a545f0b5f870bdb11e
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2025-09-09 17:54
add -I as shorthand for --include

Diffstat

M xiwrap.py 4 +++-

1 files changed, 3 insertions, 1 deletions


diff --git a/xiwrap.py b/xiwrap.py

@@ -38,7 +38,7 @@ The following options are available:
   38    38                         Allow filtered access to dbus. See `man xdg-dbus-proxy`
   39    39                         for details.
   40    40                         Set a rule for broadcast signals from NAME.
   41    -1 --include FILE          Load additional options from FILE. FILE can be an
   -1    41 -I FILE --include FILE  Load additional options from FILE. FILE can be an
   42    42                         absolute path or relative to the current directory,
   43    43                         $XDG_CONFIG_HOME/xiwrap/includes/ or
   44    44                         /etc/xiwrap/includes/. FILE must contain one option per
@@ -245,6 +245,8 @@ class RuleSet:
  245   245         key = None
  246   246         args = []
  247   247         for i, token in enumerate(argv):
   -1   248             if token == '-I':
   -1   249                 token = '--include'
  248   250             if token == '--':
  249   251                 if key is not None:
  250   252                     self.push_rule(key, *args, cwd=Path.cwd())