|
14 | 14 | from .subsim_search import FPSubSim2
|
15 | 15 | from .fingerprint import Fingerprint, get_fp_from_name
|
16 | 16 |
|
17 |
| -@click.group() |
| 17 | + |
| 18 | +CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help']) |
| 19 | + |
| 20 | + |
| 21 | +@click.group(context_settings=CONTEXT_SETTINGS) |
18 | 22 | def main():
|
19 | 23 | pass
|
20 | 24 |
|
21 |
| -@main.command(help='Download Papyrus data.') |
| 25 | + |
| 26 | +@main.command(help='Download Papyrus data.', context_settings=CONTEXT_SETTINGS) |
22 | 27 | @click.option('-o', '--out_dir', 'output_directory', type=str, required=False,
|
23 | 28 | default=None, nargs=1, show_default=True, metavar='OUTDIR',
|
24 | 29 | help='Directory where Papyrus data will be stored\n(default: pystow\'s home folder).')
|
@@ -68,7 +73,7 @@ def download(output_directory, version, more, stereo, structs, descs, force):
|
68 | 73 | disk_margin=0.0 if force else 0.1)
|
69 | 74 |
|
70 | 75 |
|
71 |
| -@main.command(help='Remove Papyrus data.') |
| 76 | +@main.command(help='Remove Papyrus data.', context_settings=CONTEXT_SETTINGS) |
72 | 77 | @click.option('-o', '--out_dir', 'output_directory', type=str, required=False,
|
73 | 78 | default=None, nargs=1, show_default=True, metavar='OUTDIR',
|
74 | 79 | help='Directory where Papyrus data will be removed\n(default: pystow\'s home folder).')
|
@@ -131,7 +136,7 @@ def clean(output_directory, version, papyruspp, stereo, bioactivities, proteins,
|
131 | 136 | progress=True)
|
132 | 137 |
|
133 | 138 |
|
134 |
| -@main.command(help='Identify matches of the RCSB PDB data in the Papyrus data.') |
| 139 | +@main.command(help='Identify matches of the RCSB PDB data in the Papyrus data.', context_settings=CONTEXT_SETTINGS) |
135 | 140 | @click.option('--indir', '-i', 'indir', type=str, required=False, default=None, nargs=1,
|
136 | 141 | metavar='INDIR', show_default=True,
|
137 | 142 | help='Directory where Papyrus data will be stored\n(default: pystow\'s home folder).')
|
@@ -203,7 +208,8 @@ def handle_parse_result(self, ctx, opts, args):
|
203 | 208 | return super(Mutex, self).handle_parse_result(ctx, opts, args)
|
204 | 209 |
|
205 | 210 |
|
206 |
| -@main.command(help='Create a FPSubSim2 library for substructure/similarity searches.') |
| 211 | +@main.command(help='Create a FPSubSim2 library for substructure/similarity searches.', |
| 212 | + context_settings=CONTEXT_SETTINGS) |
207 | 213 | @click.option('-i, --indir', 'indir', type=str, required=False, default=None, nargs=1,
|
208 | 214 | metavar='INDIR', show_default=True,
|
209 | 215 | help='Directory where Papyrus data will be stored\n(default: pystow\'s home folder).')
|
@@ -313,7 +319,8 @@ def fpsubsim2(indir, output, version, is3D, fingerprint, verbose, njobs, fingerp
|
313 | 319 | progress=verbose, njobs=njobs)
|
314 | 320 |
|
315 | 321 |
|
316 |
| -@main.command(help='Transform the compression of Papyrus files from LZMA to Gzip and vice-versa.') |
| 322 | +@main.command(help='Transform the compression of Papyrus files from LZMA to Gzip and vice-versa.', |
| 323 | + context_settings=CONTEXT_SETTINGS) |
317 | 324 | @click.option('-i', '--indir', 'indir', type=str, required=False, default=None, nargs=1,
|
318 | 325 | metavar='INDIR', show_default=True,
|
319 | 326 | help='Directory where Papyrus data is stored\n(default: pystow\'s home folder).')
|
|
0 commit comments