Skip to content

Commit

Permalink
Update noninteractive documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jeselnik committed Jul 16, 2021
1 parent 4519d1e commit f32d108
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ Which will direct you to a URL that asks you to allow access after which you can
### Non-Interactive Mode

If your usecase involves scrobbling with no intervention (like as part of a script) you can use the argument
-n along with parameters "delete" or "keep" which delete or keep the log file respectively.
-n along with parameters "delete", "keep" or "delete-on-success" which delete or keep the log file respectively.
"delete-on-success" only deletes the file if there have been zero scrobbling fails and keeps the file untouched
otherwise - this is the recommended parameter for no intervention scrobbling.

**A word of warning:** The "delete" option will always delete your log after sending scrobbles, failure or success.
A parameter which only deletes if there are no failed scrobbles will be coming in a later release.

### Compilation

Expand Down
2 changes: 1 addition & 1 deletion src/rb-scrobbler.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type Track struct {
func main() {
logPath := flag.String("f", "", "Path to .scrobbler.log")
offset := flag.String("o", "0h", "Time difference from UTC (format +10h or -10.5h")
nonInteractive := flag.String("n", "", "Non Interactive Mode: Automatically (\"keep\" or \"delete\") at end of program")
nonInteractive := flag.String("n", "", "Non Interactive Mode: Automatically (\"keep\", \"delete\" or \"delete-on-success\") at end of program")
auth := flag.Bool("auth", false, "First Time Authentication")
flag.Parse()

Expand Down

0 comments on commit f32d108

Please sign in to comment.