-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Use command-line arguments for DNS monitoring
This commit refactors the dns_monitor.py script to use command-line arguments instead of hard-coded values or environment variables for the hostname, substring, and delay. It introduces an argparse module to parse the command-line arguments and assigns them to the corresponding variables. This change provides more flexibility and makes it easier to customize the script's behavior without modifying the code directly.
- Loading branch information
Showing
1 changed file
with
14 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters