cta-observatory / protopipe

Prototype data analysis pipeline for the Cherenkov Telescope Array Observatory
https://protopipe.readthedocs.io/en/latest/
Other
5 stars 13 forks source link

Automate documentation of CLI scripts #198

Open HealthyPear opened 2 years ago

HealthyPear commented 2 years ago

Description

Currently, we are documenting CLI scripts by copy-pasting their help output, which is of course error prone. All of them in protopipe and its interface to (CTA-)DIRAC (which is documented in the same place) are based on argparse.

Luckily there seems to be a Sphinx plugin also for this which could be a possible solution: https://sphinxcontrib-autoprogram.readthedocs.io/en/stable/

As soon as the high-level refactoring from ctapipe starts, we should be able to do the same for traitlets-based Applications (see also cta-observatory/ctapipe#1904).

Caveats