From: Mark Wooding Date: Sat, 16 Mar 2013 00:29:40 +0000 (+0000) Subject: chpwd: Put `user' into template arguments when run from command-line. X-Git-Tag: 1.0.0~15 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/chopwood/commitdiff_plain/ea3f041b2d50610848bfd7eabc81588ca7d9e223 chpwd: Put `user' into template arguments when run from command-line. --- diff --git a/chpwd b/chpwd index 3872715..65ae873 100755 --- a/chpwd +++ b/chpwd @@ -279,6 +279,7 @@ if __name__ == '__main__': ctx = OPTS.context if OPTS.user: CU.set_user(OPTS.user) + CGI.STATE.kw['user'] = OPTS.user if ctx is None: ctx = 'userv' else: D.opendb()