From 37b21f141a9ad6281bcb31d1dbbd713aec663f76 Mon Sep 17 00:00:00 2001 From: ulif <uli@gnufix.de> Date: Wed, 11 May 2016 18:27:49 +0200 Subject: [PATCH] Update docs. --- diceware/random_sources.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/diceware/random_sources.py b/diceware/random_sources.py index 2d4a512..d6f6b72 100644 --- a/diceware/random_sources.py +++ b/diceware/random_sources.py @@ -21,7 +21,9 @@ Please register all sources as entry point in ``setup.py``. Look out for For developers of interfaces to other sources of randomness: Currently, you can extend `diceware` random sources by registering a class, that provides a suitable `__init__(self, options)` and a `choice(self, -sequence)` method. +sequence)` method. Optionally, you can also provide a `classmethod` +called ``update_arparse`` that will get the possibility to update the +`argparser.ArgumentParser` used by `diceware`. The `__init__` method of your class will be called with `options`, a set of options as parsed from the commandline. The initialization code can -- GitLab