Message408388
I tried to use the following code where the --db-password is not shown in the --help output (Originally I wanted to use mutually exclusive groups but that feature also works strangely, so I changed them to regular groups).
def register_db_args(parser: argparse.ArgumentParser):
grp = parser.add_argument_group('Database settings')
grp.add_argument('--db-config', dest='db_config_file',
help='Config file containg all details including password')
grp.add_argument('--db-host')
grp.add_argument('--db-port')
grp.add_argument('--db-user')
xgrp = grp.add_argument_group()
xgrp.add_argument('--db-password')
xgrp.add_argument('--db-password-env')
xgrp.add_argument('--db-password-file') |
|
Date |
User |
Action |
Args |
2021-12-12 14:53:18 | Laszlo.Attila.Toth | set | recipients:
+ Laszlo.Attila.Toth |
2021-12-12 14:53:18 | Laszlo.Attila.Toth | set | messageid: <1639320798.63.0.0421812802369.issue46057@roundup.psfhosted.org> |
2021-12-12 14:53:18 | Laszlo.Attila.Toth | link | issue46057 messages |
2021-12-12 14:53:18 | Laszlo.Attila.Toth | create | |
|