Mercurial > treepkg
comparison bin/sendnotificationmails.py @ 563:a4efa91bc3b2
Also use option --config to pass the config file
author | Bjoern Ricks <bricks@intevation.de> |
---|---|
date | Fri, 02 Sep 2011 10:18:54 +0000 |
parents | e4c0beab5328 |
children | a61046da30a1 |
comparison
equal
deleted
inserted
replaced
562:e188e780977b | 563:a4efa91bc3b2 |
---|---|
32 | 32 |
33 def parse_commandline(): | 33 def parse_commandline(): |
34 parser = OptionParser() | 34 parser = OptionParser() |
35 parser.set_defaults(config_file=os.path.join(treepkgcmd.topdir, | 35 parser.set_defaults(config_file=os.path.join(treepkgcmd.topdir, |
36 "notification.cfg")) | 36 "notification.cfg")) |
37 parser.add_option("--config-file", | 37 parser.add_option("--config", "--config-file", |
38 help=("The configuration file." | 38 help=("The configuration file." |
39 " Default notification.cfg")) | 39 " Default notification.cfg")) |
40 return parser.parse_args() | 40 return parser.parse_args() |
41 | 41 |
42 | 42 |