diff --git a/CHANGELOG.md b/CHANGELOG.md index 04e89ee..a4809ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,12 @@ # Change Log +* 4.0.8: + * Bug Fix: Command does not respect options with `-v/--version` and `-h/--help`. ( #80 ) * 4.0.7: - * Bug Fix: Remove unsupported type hints in lower version of Python. + * Bug Fix: Remove unsupported type hints in lower version of Python. ( #79 ) * 4.0.6: - * Bug Fix: Type hint and comments refines. + * Bug Fix: Type hint and comments refines. ( #78 ) * 4.0.5: - * Bug Fix: Type hint refines. + * Bug Fix: Type hint refines. ( #78 ) * 4.0.4: * Improvement: Replace setup.py by pyproject.toml * 4.0.2: diff --git a/ping3/__init__.py b/ping3/__init__.py index de4ca45..e7d97ac 100644 --- a/ping3/__init__.py +++ b/ping3/__init__.py @@ -15,7 +15,7 @@ from . import errors from .enums import ICMP_DEFAULT_CODE, IcmpType, IcmpTimeExceededCode, IcmpDestinationUnreachableCode -__version__ = "4.0.7" +__version__ = "4.0.8" DEBUG = False # DEBUG: Show debug info for developers. (default False) EXCEPTIONS = False # EXCEPTIONS: Raise exception when delay is not available. LOGGER = None # LOGGER: Record logs into console or file. Logger object should have .debug() method. diff --git a/ping3/command_line.py b/ping3/command_line.py index 4cde5b7..fc9a350 100644 --- a/ping3/command_line.py +++ b/ping3/command_line.py @@ -3,12 +3,12 @@ import ping3 -def main(assigned_args: list = []) -> None: +def main(assigned_args = None) -> None: """ Parse and execute the call from command-line. Args: - assigned_args (list[str]): List of strings to parse. The default is taken from sys.argv. + assigned_args (list[str] | None): List of strings to parse. The default is taken from sys.argv. Returns: Formatted ping results printed.