aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2017-05-26 17:17:35 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2017-05-26 17:17:35 +0200
commit51e6fbac98ba1ddd6815bdd84018e1425ef8a70f (patch)
tree568a9f5e9582b94c86bc67ee00a9425dd786104b
parente3b62c351fe3abd6e33a8dee74dac2be5bbfb5b1 (diff)
License and a better help description
-rwxr-xr-xdebdate13
1 files changed, 12 insertions, 1 deletions
diff --git a/debdate b/debdate
index 616c9cb..bd5cb44 100755
--- a/debdate
+++ b/debdate
@@ -1,5 +1,12 @@
#!/usr/bin/env python3
+# Copyright (C) Elena Grandi <valhalla@trueelena.org>
+# This program is free software. It comes without any warranty, to the
+# extent permitted by applicable law. You can redistribute it and/or
+# modify it under the terms of the Do What The Fuck You Want To Public
+# License, Version 2, as published by Sam Hocevar. See
+# http://www.wtfpl.net/ for more details.
+
import argparse
import datetime
from dateutil import relativedelta, parser
@@ -91,7 +98,11 @@ class TestDebDate(unittest.TestCase):
class Command:
def setup_parser(self):
- self.parser = argparse.ArgumentParser(description='Debian Regnal Date')
+ self.parser = argparse.ArgumentParser(
+ description='''
+ Convert Gregorian dates to Debian Regnal dates
+ '''
+ )
self.parser.add_argument(
'-d', '--date',
help='A gregorian date',