Add command line argument to run the GC manually

Adds a "-g" option that allows for running the garbage collector for
note files manually. This is useful for users that do not use note files
at all or rarely edit/remove them.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer
2011-09-01 17:08:37 +02:00
parent 711d5dea20
commit 718a6cfee4
3 changed files with 27 additions and 2 deletions

View File

@@ -103,6 +103,9 @@ appointments can be specified using the *-c* flag.
Specify the data directory to use. This option is incompatible with -c.
If not specified, the default directory is *~/.calcurse/*.
*-g*, *--gc*::
Run the garbage collector for note files and exit.
*-h*, *--help*::
Print a short help text describing the supported command-line options,
and exit.

View File

@@ -209,6 +209,9 @@ can be specified using the `-c` flag.
Specify the data directory to use. This option is incompatible with -c.
If not specified, the default directory is `~/.calcurse/`.
`-g, --gc`::
Run the garbage collector for note files and exit.
`-h, --help`::
Print a short help text describing the supported command-line options,
and exit.