瀏覽代碼

readme: added usage

Fabian Peter Hammerle 4 年之前
父節點
當前提交
7583c9d8fd
共有 1 個文件被更改,包括 12 次插入2 次删除
  1. 12 2
      README.md

+ 12 - 2
README.md

@@ -6,11 +6,21 @@ Convert / split single [iCalendar](https://en.wikipedia.org/wiki/ICalendar)
 
 Compatible with [khal](https://github.com/pimutils/khal).
 
-## setup
+## Setup
 
 ```sh
 $ sudo apt-get install python3-icalendar # optional
 $ pip3 install --user --upgrade ics2vdir
 ```
 
-## usage
+## Usage
+
+```sh
+$ ics2vdir < input.ics --output-dir /some/path
+```
+
+Or download `.ics` from [Google Calendar](https://calendar.google.com/):
+```sh
+$ curl https://calendar.google.com/calendar/ical/someone%40gmail.com/private-1234/basic.ics \
+    | pipenv run ics2vdir --output-dir output/
+```