comparison roundup/scripts/roundup_mailgw.py @ 8552:dbe30d5032b8

doc: move OAUTH settings together, add set-value and OAUTH docs
author John Rouillard <rouilj@ieee.org>
date Thu, 02 Apr 2026 12:26:13 -0400
parents 82fc69e6d9d7
children 9c3ec0a5c7fc
comparison
equal deleted inserted replaced
8551:06fd452534d0 8552:dbe30d5032b8
154 cmd.add_argument('-v', '--version', action='store_true', 154 cmd.add_argument('-v', '--version', action='store_true',
155 help='print version and exit') 155 help='print version and exit')
156 cmd.add_argument('-c', '--default-class', default='', 156 cmd.add_argument('-c', '--default-class', default='',
157 help="Default class of item to create (else the tracker's " 157 help="Default class of item to create (else the tracker's "
158 "MAILGW_DEFAULT_CLASS)") 158 "MAILGW_DEFAULT_CLASS)")
159 cmd.add_argument('-S', '--set-value', action='append',
160 help="Set additional properties for classes. Format of SET_VALUE: '[class.]property=value[;property=value]'. Class defaults to DEFAULT_CLASS.", default=[])
159 cmd.add_argument('-O', '--oauth-directory', 161 cmd.add_argument('-O', '--oauth-directory',
160 help='Directory with OAUTH credentials, default "oauth" in ' 162 help='Directory with OAUTH credentials, default "oauth/" in '
161 'tracker home') 163 'tracker home')
162 cmd.add_argument('-S', '--set-value', action='append',
163 help="Set additional properties on some classes", default=[])
164 cmd.add_argument('-T', '--oauth-token-endpoint', 164 cmd.add_argument('-T', '--oauth-token-endpoint',
165 help="OAUTH token endpoint for access_token renew, default=%(default)s", 165 help="URL of the OAUTH token endpoint when renewing access_token, "
166 "default=%(default)s",
166 default='https://login.microsoftonline.com/' 167 default='https://login.microsoftonline.com/'
167 'organizations/oauth2/v2.0/token') 168 'organizations/oauth2/v2.0/token')
168 return cmd, cmd.parse_args(argv) 169 return cmd, cmd.parse_args(argv)
169 170
170 171

Roundup Issue Tracker: http://roundup-tracker.org/