summaryrefslogtreecommitdiff
path: root/butler.py
diff options
context:
space:
mode:
Diffstat (limited to 'butler.py')
-rw-r--r--butler.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/butler.py b/butler.py
index 2cfc62f..00644f5 100644
--- a/butler.py
+++ b/butler.py
@@ -6,7 +6,8 @@ from ausbutler.interface import Interface
def main():
- args = sys.argv[1:]
+ nowait = 'nowait' not in sys.argv
+ args = [arg for arg in sys.argv[1:] if arg != 'nowait']
if len(args) == 0:
args = ['calculate', 'generate', 'send']
@@ -21,5 +22,8 @@ def main():
client = Goniec(load_config('goniec'))
client.send(files)
+ if nowait:
+ raw_input('Press any key to continue...')
+
if __name__ == '__main__':
main()