improve docs
This commit is contained in:
parent
5cde4ac06b
commit
7c4cb94ea8
2 changed files with 62 additions and 8 deletions
|
|
@ -185,13 +185,13 @@ if __name__ == '__main__':
|
|||
parser = argparse.ArgumentParser(
|
||||
prog='hedgedoc-expire',
|
||||
description='Remove old notes and revisions from Hedgedoc',
|
||||
epilog='See https://git.hamburg.ccc.de/xxx')
|
||||
parser.add_argument('-r', '--revisions', metavar='DAYS', type=float, default=7,
|
||||
help='remove all revisions created more than these many days ago')
|
||||
parser.add_argument('-n', '--notes', metavar='DAYS', type=float, default=90,
|
||||
help='remove all notes not changed in these many days')
|
||||
epilog='See https://git.hamburg.ccc.de/CCCHH/hedgedoc-expire')
|
||||
parser.add_argument('-c', '--check', action='store_true',
|
||||
help='print what would be done, then exit')
|
||||
parser.add_argument('-n', '--notes', metavar='DAYS', type=float, default=90,
|
||||
help='remove all notes not changed in these many days')
|
||||
parser.add_argument('-r', '--revisions', metavar='DAYS', type=float, default=7,
|
||||
help='remove all revisions created more than these many days ago')
|
||||
args = parser.parse_args()
|
||||
|
||||
revisions_delta = timedelta(days=args.revisions)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue