Skip to content

Commit

Permalink
add description
Browse files Browse the repository at this point in the history
  • Loading branch information
tshirtman committed Jul 29, 2012
1 parent a4f1760 commit f7d2e15
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion reloader.py
Expand Up @@ -5,7 +5,15 @@
from argparse import ArgumentParser, REMAINDER
from time import sleep

parser = ArgumentParser(description='TODO')
parser = ArgumentParser(description='''
Allows to start a program, and to monitor changes in a folder, when changes are
detected in the folder, the command is restarted.
This can be useful to test a software you are developping and having immediate
feedback.
Or to restart a daemon when configuration or data changes.
Or any other use, the sky is the limit :)
''')
parser.add_argument('-p', '--path', type=str, default='.', help='set the path to monitor for changes')
parser.add_argument('-a', '--action', type=str, default='restart', help='what action to perform when changes are detected')
#parser.add_argument('-i', '--ignore', type=str, default='',
Expand Down

0 comments on commit f7d2e15

Please sign in to comment.