Skip to content

Commit

Permalink
Bug Fix: Command does not respect options with -v/--version and `-h…
Browse files Browse the repository at this point in the history
…/--help`. ( #80 )
  • Loading branch information
kyan001 committed Apr 10, 2024
1 parent 57a30ef commit bf8ef78
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion ping3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions ping3/command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit bf8ef78

Please sign in to comment.