Commit e62803a7 authored by Paulo Medeiros's avatar Paulo Medeiros
Browse files

Lint argparse_wrapper.py docstrings.

parent 45f97c45
......@@ -16,11 +16,10 @@ from .commands_functions import (
class StoreDictKeyPair(argparse.Action):
"""Enable args="key1=val1, ..., keyN=valN" in command line args.
"""Enable args="key1=val1, ..., keyN=valN" in command line args."""
Source: <https://stackoverflow.com/questions/29986185/
python-argparse-dict-arg/42355279>
"""
# Source: <https://stackoverflow.com/questions/29986185/
# python-argparse-dict-arg/42355279>
def __init__(self, option_strings, dest, nargs=None, **kwargs):
"""Initialise nargs."""
......@@ -37,7 +36,15 @@ class StoreDictKeyPair(argparse.Action):
def get_parsed_args(program_name):
"""Get parsed command line arguments."""
"""Get parsed command line arguments.
Args:
program_name (str): The name of the program.
Returns:
argparse.Namespace: Parsed command line arguments.
"""
# Define main parser and general options
parser = argparse.ArgumentParser(
prog=program_name,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment