From c5412a5f53e8887d37e6ade9de528e404279288a Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Mon, 22 Dec 2014 20:32:58 +0000 Subject: [PATCH] chpwd: Publish command-line options to the `CFG' module. They need to go somewhere and this seemed like the least bad choice. --- chpwd | 1 + 1 file changed, 1 insertion(+) 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 -- 2.11.0