From 3a745ac98f1a0e2df897361edd0b84d707910386 Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Wed, 23 Aug 2017 15:17:18 -0500 Subject: [PATCH] Add -h, --version, and --help options. --- log_happy.nim | 11 ++++++++--- log_happy.nimble | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/log_happy.nim b/log_happy.nim index cf85194..37ad282 100644 --- a/log_happy.nim +++ b/log_happy.nim @@ -35,7 +35,7 @@ when isMainModule: var outFile: File try: - let VERSION = "0.1.0" + let VERSION = "0.2.0" let usage = """ Usage: log_happy [options] @@ -44,7 +44,8 @@ Usage: Options: - -v Print version information and exit. + -h --help Print this usage information and exit. + -v --version Print version information and exit. -e