Skip to content

Commit

Permalink
Added changelog and --version option to scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggirelli committed Mar 28, 2018
1 parent 86f81d0 commit a51f64b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
- Version control of scripts and `--version` flag.

### Fixed
- Proper script help page formatting.

Expand Down
9 changes: 8 additions & 1 deletion bin/melt_duplex
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
#
# Author: Gabriele Girelli
# Email: gigi.ga90@gmail.com
# Version: 1.4.4
# Date: 20170711
# Project: oligo characterization
# Description: calculate melting temperature of a provide NA duplex
#
# Changelog:
# v2.0.0 - 2018-03-28: first release withing pypi package.
#
# References:
# [1] Freier et al, PNAS(83), 1986;
# [2] Sugimoto et al, Biochemistry(34), 1995.
Expand Down Expand Up @@ -115,6 +117,11 @@ parser.add_argument('-v', '--verbose',
const = True, default = False,
help = 'Verbose output.')

# Version flag
version = "2.0.0"
parser.add_argument('--version', action = 'version',
version = '%s v%s' % (sys.argv[0], version,))

# Parse arguments
args = parser.parse_args()

Expand Down
9 changes: 8 additions & 1 deletion bin/melt_secstr
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
#
# Author: Gabriele Girelli
# Email: gigi.ga90@gmail.com
# Version: 1.4.4
# Date: 20171026
# Project: oligo characterization
# Description: correct melting temperature of secondary structures and produce
# melting curves.
#
# Changelog:
# v2.0.0 - 2018-03-28: first release withing pypi package.
#
# References:
# [1] McConaughy et al, Biochemistry(8), 1969;
# [2] Wright et al, Appl. env. microbiol.(80), 2014.
Expand Down Expand Up @@ -62,6 +64,11 @@ parser.add_argument('-C', '--celsius',
const = True, default = False,
help = 'Output temperature in Celsius degrees. Default: Kelvin')

# Version flag
version = "2.0.0"
parser.add_argument('--version', action = 'version',
version = '%s v%s' % (sys.argv[0], version,))

# Parse arguments
args = parser.parse_args()

Expand Down

0 comments on commit a51f64b

Please sign in to comment.