summaryrefslogtreecommitdiff
path: root/elo.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-11-30 14:26:35 +0100
committeremkael <emkael@tlen.pl>2016-11-30 14:26:35 +0100
commit1b8f84941c3ca28fc6590ccc907228b8afded8c6 (patch)
tree4758f87c29ba6076a7f2f3831e7dffa46d8aa48d /elo.py
parentcd1810a441230188b58d834e68cd15975a58cdb4 (diff)
* coding standards and formatting
Diffstat (limited to 'elo.py')
-rwxr-xr-xelo.py20
1 files changed, 11 insertions, 9 deletions
diff --git a/elo.py b/elo.py
index 743ee4e..ed0a2f8 100755
--- a/elo.py
+++ b/elo.py
@@ -10,12 +10,14 @@ parser = argparse.ArgumentParser(
formatter_class=argparse.RawTextHelpFormatter)
parser.add_argument('command', metavar='COMMAND', nargs='?',
help="Action to execute against the database:\n"
- "print - prints the rankings for all drivers ranked in 12 months,\n"
+ "print - prints the rankings for all drivers ranked "
+ "in 12 months,\n"
"reset - resets the rankings,\n"
"rate - calculates the rankings\n"
"init - init clean database for the application\n"
"Default value is 'print'.",
- default='print', choices=['print', 'rate', 'reset', 'init'])
+ default='print',
+ choices=['print', 'rate', 'reset', 'init'])
parser.add_argument('--date',
help='Date for which the action should be executed.\n'
'Print ratings for DATE,\n'
@@ -23,17 +25,17 @@ parser.add_argument('--date',
'or rank the races all the way up to DATE.')
parser.add_argument(
'--limit',
- help='Ranking list (display) cut-off point.',
- type=int)
+ help='Ranking list (display) cut-off point.',
+ type=int)
parser.add_argument(
'-v',
- help='Display verbose info on rating progress to STDERR.',
- action='store_true')
+ help='Display verbose info on rating progress to STDERR.',
+ action='store_true')
parser.add_argument(
'--force',
- '-f',
- help='Force database initialization (for "init" command).',
- action='store_true')
+ '-f',
+ help='Force database initialization (for "init" command).',
+ action='store_true')
arguments = parser.parse_args()