From fba30c29263c58f0d32cf60c27ddfbf49bd9154b Mon Sep 17 00:00:00 2001 From: Volodymyr Date: Sat, 13 Feb 2021 16:39:27 -0500 Subject: [PATCH] Update usage instructions & README.md --- README.md | 7 ++++++- Sources/airdrop/ConsoleIO.swift | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3228853..2968b6c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # airdrop-cli -This is a command line tool that allows you to share files with Apple devices using AirDrop from your terminal. +This is a command line tool that allows you to share files and URLs with Apple devices using AirDrop from your terminal. ## Installation ### Homebrew @@ -31,4 +31,9 @@ To airdrop files, run: airdrop /path/to/your/file ``` +You can also airdrop URLs: +``` +airdrop https://apple.com/ +``` + You can pass as many paths as you want. As long as theese file URLs are correct, the command will work. diff --git a/Sources/airdrop/ConsoleIO.swift b/Sources/airdrop/ConsoleIO.swift index 5b0261e..09792f9 100644 --- a/Sources/airdrop/ConsoleIO.swift +++ b/Sources/airdrop/ConsoleIO.swift @@ -26,7 +26,7 @@ class ConsoleIO { let executableName = (CommandLine.arguments[0] as NSString).lastPathComponent writeMessage("usage: \(executableName) []") - writeMessage(" args – paths to files, which you you'd like to AirDrop") + writeMessage(" args – URLs or paths to files, which you'd like to AirDrop") writeMessage("\nOPTIONS:") writeMessage(" -h, --help – print help info") }