chiark / gitweb /
chpwd: Publish command-line options to the `CFG' module.
[chopwood] / chpwd
diff --git a/chpwd b/chpwd
index dc054b43973cb718467cf69ba70721b52ed1153f..0e0de39357555ec73b41b39422e8dc3f5dfc91e8 100755 (executable)
--- a/chpwd
+++ b/chpwd
@@ -91,6 +91,7 @@ def parse_options():
   global OPTS
   OPTS, args = OPTPARSE.parse_args()
   OPTPARSE.show_global_opts = False
+  CFG.OPTS = OPTS
   ## It's tempting to load the configuration here.  Don't do that.  Some
   ## contexts will want to check that the command line was handled properly
   ## upstream before believing it for anything, such as executing arbitrary