[Getan-commits] [PATCH] Display licensing information with --version

Wald Commits scm-commit at wald.intevation.org
Mon Apr 30 14:14:01 CEST 2018


# HG changeset patch
# User Magnus Schieder <mschieder at intevation.de>
# Date 1525090385 -7200
# Node ID 2ab6fdde1010d5e192dc241b4d2d939c739b4b8d
# Parent  24ccca2442b1021b7e294130eec95c92c4259b2b
Display licensing information with --version.

diff -r 24ccca2442b1 -r 2ab6fdde1010 getan/main.py
--- a/getan/main.py	Mon Apr 30 12:13:35 2018 +0200
+++ b/getan/main.py	Mon Apr 30 14:13:05 2018 +0200
@@ -28,7 +28,7 @@
 
     usage = "%(prog)s [options] [databasefile (default: " + \
         DEFAULT_DATABASE + ")]"
-    version = "getan version %s" % getan.__version__
+    version = "getan version %s, LICENSE GNU GPL v>=3" % getan.__version__
 
     parser = argparse.ArgumentParser(prog='getan', usage=usage)
     parser.add_argument('--version', action='version', version=version)


More information about the Getan-commits mailing list