Skip to content

Commit

Permalink
docs: use expanded argument names in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
socsieng committed Jan 4, 2021
1 parent 2109f30 commit f4839a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -11,7 +11,7 @@ This is a Swift rewrite of [`sendkeys-macos`](https://github.com/socsieng/sendke
Basic usage:

```sh
sendkeys -a "Notes" -c "Hello<p:1> world<c:left:option,shift><c:i:command>"
sendkeys --application-name "Notes" --characters "Hello<p:1> world<c:left:option,shift><c:i:command>"
```

![hello world example](https://github.com/socsieng/sendkeys/raw/main/docs/images/example1.gif)
Expand All @@ -22,15 +22,15 @@ _Activates the Notes application and types `Hello` (followed by a 1 second pause
Input can be read from a file:

```sh
sendkeys -a "Code" -f example.txt
sendkeys --application-name "Code" --input-file example.txt
```

_Activates Visual Studio Code and sends keystrokes loaded from `example.txt`._

Input can also be piped to `stdin`:

```sh
cat example.txt | sendkeys -a "Notes"
cat example.txt | sendkeys --application-name "Notes"
```

_Activates the Notes application and sends keystrokes piped from `stdout` of the preceeding command._
Expand Down

0 comments on commit f4839a3

Please sign in to comment.