|
34 | 34 | @click.group() |
35 | 35 | @click.option('--debug/--no-debug', default=False) |
36 | 36 | @click.option('-k', '--koji-url', |
37 | | - default='https://koji.fedoraproject.org/kojihub', |
38 | | - type=str, help=""" |
39 | | -The URL of the Koji build system. |
40 | | -(Default: https://koji.fedoraproject.org/kojihub) |
41 | | -""", |
| 37 | + default=mmdzanata.fedora.KOJI_URL, |
| 38 | + type=str, help="The URL of the Koji build system.", |
| 39 | + show_default=True, |
42 | 40 | metavar="<URL>") |
43 | 41 | @click.option('-b', '--branch', default="rawhide", type=str, |
44 | | - help="The distribution release (Default: rawhide)", |
| 42 | + help="The distribution release", |
45 | 43 | metavar="<branch_name>") |
46 | 44 | @click.option('-z', '--zanata-url', |
47 | | - default="https://fedora.zanata.org", |
48 | | - type=str, help=""" |
49 | | -The Zanata URL |
50 | | -(Default: https://fedora.zanata.org/) |
51 | | -""", |
| 45 | + default=mmdzanata.fedora.ZANATA_URL, |
| 46 | + type=str, help="The Zanata URL", |
| 47 | + show_default=True, |
52 | 48 | metavar="<zanata_project>") |
53 | 49 | @click.option('-p', '--zanata-project', |
54 | | - default="fedora-modularity-translations", |
55 | | - type=str, help=""" |
56 | | -The Zanata project |
57 | | -(Default: fedora-modularity-translations) |
58 | | -""", |
| 50 | + default=mmdzanata.fedora.ZANATA_PROJECT, |
| 51 | + type=str, help="The Zanata project", |
| 52 | + show_default=True, |
59 | 53 | metavar="<zanata_project>") |
60 | 54 | @click.option('-f', '--zanata-translation-document', |
61 | | - default="fedora-modularity-translations", |
62 | | - help=""" |
63 | | -The name of the translated file in Zanata. |
64 | | -(Default: fedora-modularity-translations) |
65 | | -""", |
| 55 | + default=mmdzanata.fedora.ZANATA_DOCUMENT, |
| 56 | + help="The name of the translated file in Zanata.", |
| 57 | + show_default=True, |
66 | 58 | metavar="<translation_document>") |
67 | 59 | @click.pass_context |
68 | 60 | def cli(ctx, debug, branch, koji_url, zanata_url, zanata_project, |
@@ -95,7 +87,8 @@ def cli(ctx, debug, branch, koji_url, zanata_url, zanata_project, |
95 | 87 | @cli.command() |
96 | 88 | @click.option('--upload/--no-upload', default=True, |
97 | 89 | help='Whether to automatically push extracted strings to ' |
98 | | - 'Zanata') |
| 90 | + 'Zanata', |
| 91 | + show_default=True) |
99 | 92 | @click.pass_context |
100 | 93 | def extract(ctx, upload): |
101 | 94 | """ |
|
0 commit comments