Skip to content
Snippets Groups Projects
Commit ec253cba authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

add hdf5_add_attributes to doc

parent bd51bbcf
No related branches found
No related tags found
No related merge requests found
...@@ -6,3 +6,10 @@ This section contains the exhaustive list of the sub-commands and options availa ...@@ -6,3 +6,10 @@ This section contains the exhaustive list of the sub-commands and options availa
.. argparse:: .. argparse::
:ref: jass.__main__.get_parser :ref: jass.__main__.get_parser
:prog: jass :prog: jass
Utilities
~~~~~~~~~~~~~~~~~~~
.. argparse::
:ref: scripts.hdf5_add_attributes.get_parser
:prog: scripts/hdf5_add_attributes
"""
This is the main JASS Python module
Submodules
==========
.. autosummary::
:toctree: _autosummary
config
models
server
tasks
util
"""
from jass.tasks import celery
...@@ -16,7 +16,8 @@ def set_metadata_from_file(*, hdf5_file, init_table_metadata_path): ...@@ -16,7 +16,8 @@ def set_metadata_from_file(*, hdf5_file, init_table_metadata_path):
init_store.close() init_store.close()
if __name__ == "__main__":
def get_parser():
parser = argparse.ArgumentParser() parser = argparse.ArgumentParser()
parser.add_argument( parser.add_argument(
"--init-table-path", default=None, help="path to the inittable to edit", required=True, dest="hdf5_file" "--init-table-path", default=None, help="path to the inittable to edit", required=True, dest="hdf5_file"
...@@ -67,6 +68,10 @@ if __name__ == "__main__": ...@@ -67,6 +68,10 @@ if __name__ == "__main__":
default=None, default=None,
required=False, required=False,
) )
return parser
if __name__ == "__main__":
parser = get_parser()
args = parser.parse_args() args = parser.parse_args()
if args.init_table_metadata_path: if args.init_table_metadata_path:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment