Skip to content

Commit 958fecf

Browse files
committed
readme
1 parent 9b62e4f commit 958fecf

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# work_log
2+
3+
Log the active window and cursor position to a CSV file.
4+
5+
This can be used to analyze how you spend your time on your computer.
6+
7+
8+
## Usage
9+
10+
```text
11+
Usage: work_log [OPTION]...
12+
Log the active window and cursor position to a CSV file.
13+
14+
Options:
15+
--frequency=SECONDS set the frequency of logging (default: 2.0)
16+
--file=FILE set the file to write to (default: ~/work_log.csv)
17+
--stdout print to stdout instead of a file
18+
--help display this help and exit
19+
```

src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ fn main() {
2121
println!(" --frequency=SECONDS set the frequency of logging (default: 2.0)");
2222
println!(" --file=FILE set the file to write to (default: ~/work_log.csv)");
2323
println!(" --stdout print to stdout instead of a file");
24+
println!(" --help display this help and exit");
2425
return;
2526
}
2627
let freq = args

0 commit comments

Comments
 (0)