diff options
| -rwxr-xr-x | harvester | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -17,6 +17,8 @@ # You should have received a copy of the GNU General Public License # along with Harvester. If not, see <http://www.gnu.org/licenses/>. +VERSION='0.0.1' + function print_usage () { cat 1>&2 <<__EOF__ Usage: harvester [<flags>] @@ -28,6 +30,7 @@ Flags: -d, --date=DATE Date when work was done (e.g. 2017-01-31). -m, --description=DESCRIPTION Description of work. --list-modules List project sprints with IDs. + -v, --version Show application version. __EOF__ } @@ -131,6 +134,11 @@ function main () { return 0 ;; + -v | --version) + echo $VERSION + + return 0 + ;; esac done |
