mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-03-09 05:02:27 +00:00
feat: updates, docs, license fixes, new helpers
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user