Skip to content

Commit

Permalink
Added README and help string entries for --no-delete, closes #21
Browse files Browse the repository at this point in the history
  • Loading branch information
calmcl1 committed Mar 3, 2017
1 parent 5f357af commit b4e5271
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -34,7 +34,7 @@ chronicle [-h | --help]
chronicle [--licence]
chronicle [-l | --list-devices ]
chronicle [-d | --directory OUTPUT_DIRECTORY] [-f | --filename FORMAT] [-i | --input-device DEVICE_ID]
[-a | --max-age MAX_FILE_AGE] [-s | --audio-format [WAV | OGG]]
[[-a | --max-age MAX_FILE_AGE] | --no-delete] [-s | --audio-format [WAV | OGG]]
Where:
-h | --help Prints this help message.
Expand All @@ -50,6 +50,8 @@ Where:
If unspecified, the system default audio recording device will be used.
-a | --max-age Sets the maximum age (in seconds) before audio files will be automatically deleted.
Defaults to 3600000 (1000 hours, in accordance with OFCOM rules).
--no-delete If passed, Chronicle will not delete old audio files, so they can be manually managed.
Incompatible with --max-age.
-s | --audio-format Sets the audio format to use for the recorded audio files.
Acceptable parameters are:
OGG | Ogg Vorbis (.ogg)
Expand Down
6 changes: 4 additions & 2 deletions chronicle.cpp
Expand Up @@ -466,7 +466,7 @@ void printHelp() {
chronicle [--licence]
chronicle [-l | --list-devices ]
chronicle [-d | --directory OUTPUT_DIRECTORY] [-f | --filename FORMAT] [-i | --input-device DEVICE_ID]
[-a | --max-age MAX_FILE_AGE] [-s | --audio-format [WAV | OGG]]
[[-a | --max-age MAX_FILE_AGE] | --no-delete] [-s | --audio-format [WAV | OGG]]
Where:
-h | --help Prints this help message.
Expand All @@ -481,7 +481,9 @@ void printHelp() {
numbers can be obtained with `chronicle -l`.
If unspecified, the system default audio recording device will be used.
-a | --max-age Sets the maximum age (in seconds) before audio files will be automatically deleted.
Defaults to 3600000 (1000 hours, in accordance with OFCOM rules).
Defaults to 3628800 (42 days, in accordance with OFCOM rules).
--no-delete If passed, Chronicle will not delete old audio files, so they can be manually managed.
Incompatible with --max-age.
-s | --audio-format Sets the audio format to use for the recorded audio files.
Acceptable parameters are:
OGG | Ogg Vorbis (.ogg)
Expand Down

0 comments on commit b4e5271

Please sign in to comment.