X-Git-Url: https://git.distorted.org.uk/~mdw/chopwood/blobdiff_plain/9fc9351d43236aeca3910b977eef0cdf355a085e..HEAD:/chpwd diff --git a/chpwd b/chpwd index dc054b4..2d6c75c 100755 --- a/chpwd +++ b/chpwd @@ -76,6 +76,9 @@ for short, long, props in [ 'default': ENV.get('CHPWD_CONFIG', OS.path.join(HOME, 'chpwd.conf')), 'help': 'read configuration from FILE.' }), + ('-i', '--ignore-policy', { + 'dest': 'ignpol', 'default': False, 'action': 'store_true', + 'help': 'ignore the operation policy (for administrators)' }), ('-s', '--ssl', { 'dest': 'sslp', 'action': 'store_true', 'help': 'pretend CGI connection is carried over SSL/TLS' }), @@ -91,6 +94,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