What is the standard sphinx docstring format for module command line parameters? For example:
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('-f', '--file', default=f'{PATH}/data/', help='excel spreadsheet')
args = parser.parse_args()
main(args.file)
I'd rather document this manually than use the sphinx argparse extension. I've considered using the method below for the module docstring but I don't now if it is the standard method, nor how to indicate the -f
flag. Additionally, I'm actually using numpy-style docstrings but I'm leaving the standard sphinx formats here so more people can understand it.
:param file: excel spreadsheet
:ptype file: str