diff --git a/README.md b/README.md index 646c867..bbd8292 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,7 @@ Minimal: ena-upoad-cli --action {add,modify,cancel,release} --center CENTER_NAM All supported arguments: -h, --help show this help message and exit + --version show program's version number and exit --action {add,modify,cancel,release} add: add an object to the archive modify: modify an object in the archive diff --git a/ena_upload/ena_upload.py b/ena_upload/ena_upload.py index e673932..5b8476f 100755 --- a/ena_upload/ena_upload.py +++ b/ena_upload/ena_upload.py @@ -541,7 +541,7 @@ def process_args(): corresponding the ENA objects -- STUDY, SAMPLE, EXPERIMENT and RUN.''', formatter_class=SmartFormatter) - + parser.add_argument('--version', action='version', version='%(prog)s 0.3.0') parser.add_argument('--action', choices=['add', 'modify', 'cancel', 'release'], required=True,