Explorar o código

model-server: config tweak

David Sehnal %!s(int64=5) %!d(string=hai) anos
pai
achega
e2eb1bf223
Modificáronse 1 ficheiros con 5 adicións e 4 borrados
  1. 5 4
      src/servers/model/config.ts

+ 5 - 4
src/servers/model/config.ts

@@ -163,7 +163,8 @@ function addServerArgs(parser: argparse.ArgumentParser) {
             'Example: pdb-bcif \'../../data/bcif/${id}.bcif\' ',
             'JS expressions can be used inside ${}, e.g. \'${id.substr(1, 2)}/${id}.mdb\'',
             'Can be specified multiple times.',
-            'The `SOURCE` variable (e.g. `pdb-bcif`) is arbitrary and depends on how you plan to use the server.'
+            'The `SOURCE` variable (e.g. `pdb-bcif`) is arbitrary and depends on how you plan to use the server.',
+            `Supported formats: ${ModelServerFetchFormats.join(', ')}`
         ].join('\n'),
     });
     parser.addArgument([ '--sourceMapUrl' ], {
@@ -171,9 +172,9 @@ function addServerArgs(parser: argparse.ArgumentParser) {
         action: 'append',
         metavar: ['SOURCE', 'PATH', 'SOURCE_MAP_FORMAT'] as any,
         help: [
-            'Same as --sourceMap but for URL. --sourceMap src url format',
-            'Example: pdb-cif "https://www.ebi.ac.uk/pdbe/entry-files/download/${id}_updated.cif" cif',
-            'Format is either cif or bcif'
+            'Same as --sourceMap but for URL. \'--sourceMapUrl src url format\'',
+            'Example: \'pdb-cif "https://www.ebi.ac.uk/pdbe/entry-files/download/${id}_updated.cif" cif\'',
+            `Supported formats: ${ModelServerFetchFormats.join(', ')}`
         ].join('\n'),
     });
 }