diff --git a/example/main.go b/example/main.go index 0db0ceb..683c644 100644 --- a/example/main.go +++ b/example/main.go @@ -13,14 +13,14 @@ Wallpaper is a utility for setting the desktop wallpaper. You can give the local filepath or any image url. Usage: - wallpaper --file C:\Users\Hirenkumar.Chauhan\Pictures\made-a-botw-vector-wallpaper-4k-2560×1600.jpg + wallpaper -f C:\Users\your_user_name\Pictures\made-a-botw-vector-wallpaper-4k-2560×1600.jpg - wallpaper --i https://i.redd.it/l1764nd9h3721.jpg + wallpaper -i https://i.redd.it/l1764nd9h3721.jpg --version, -v version of the utility. --help, -h for help. --file, -f [filepath] local filepath. - --i [url] download image from internet and set it as wallpaper + -i [url] download image from internet and set it as wallpaper `) } @@ -30,16 +30,15 @@ func main() { if len(args) >= 2 { switch args[1] { - case "--file": - case "-f": + case "--file", "-f": err = wallpaper.SetLocalWallpaper(args[2]) break - case "--i": + case "--i", "-i": err = wallpaper.SetWallpaperFromURL(args[2]) break case "--version": case "-v": - fmt.Println("Wallpaper util version 0.1.0") + fmt.Println("Wallpaper util version 0.1.1") break case "--help": case "-h":