feat: updates, docs, license fixes, new helpers

This commit is contained in:
2025-02-12 01:05:37 +02:00
parent cdd68748e0
commit 88efedf26b
25 changed files with 1559 additions and 355 deletions

View File

@@ -6,11 +6,12 @@
# License: MIT
VERSION="1.0.0"
SCRIPT_NAME="$(basename "$0")"
# Function to display usage
usage()
{
echo "Usage: x-localip [options] [interface]"
echo "Usage: $SCRIPT_NAME [options] [interface]"
echo "Options:"
echo " --help Show this help message"
echo " --version Show version information"
@@ -31,7 +32,7 @@ while [[ $# -gt 0 ]]; do
exit 0
;;
--version)
echo "x-localip version $VERSION"
echo "$SCRIPT_NAME version $VERSION"
exit 0
;;
--ipv4)