show default in help

This commit is contained in:
sukanka 2022-11-06 09:38:07 +08:00
parent 999fe6a385
commit aba117a391
2 changed files with 2 additions and 3 deletions

View file

@ -332,9 +332,8 @@ def update_depends_by_file(file, bioarch_path="BioArchLinux", bioc_min_ver="3.0"
if __name__ == '__main__':
parser = argparse.ArgumentParser(
prog='depends updater for BioArchLinux',
description='update the depends of R packages from CRAN and Bioconductor automatically',
epilog='Text at the bottom of help'
formatter_class=argparse.ArgumentDefaultsHelpFormatter
)
parser.add_argument(
'--file', help='The file that contains the pkgname to be archived, one pkgname per line')

View file

@ -125,8 +125,8 @@ if __name__ == '__main__':
d = Downloader()
download_path = os.getenv('BIO_META_PATH', 'bioc')
parser = argparse.ArgumentParser(
prog='R package metadata sync tool',
description='Sync metadata of R packages from CRAN and Bioconductor to a local path',
formatter_class=argparse.ArgumentDefaultsHelpFormatter
)
parser.add_argument(
'--path', help='The path to store the metadata files. '