Skip to content
Snippets Groups Projects
Commit c0ec942b authored by ulif's avatar ulif
Browse files

Document main function.

parent d76365e9
No related branches found
No related tags found
No related merge requests found
......@@ -120,6 +120,13 @@ def get_passphrase(wordnum=6, specialsnum=1, delimiter='', lang='en',
def main(args=None):
"""Main programme.
Called when `diceware` script is called.
`args` is a list of command line arguments to process. If no such
args are given, we use `sys.argv`.
"""
if args is None:
args = sys.argv[1:]
options = handle_options(args)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment