From: Mark Wooding Date: Mon, 22 Dec 2014 20:32:58 +0000 (+0000) Subject: chpwd: Publish command-line options to the `CFG' module. X-Git-Tag: 1.2.0~11 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/chopwood/commitdiff_plain/c5412a5f53e8887d37e6ade9de528e404279288a chpwd: Publish command-line options to the `CFG' module. They need to go somewhere and this seemed like the least bad choice. --- diff --git a/chpwd b/chpwd index dc054b4..0e0de39 100755 --- 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