summaryrefslogtreecommitdiff
path: root/butler.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-05-04 23:07:48 +0200
committeremkael <emkael@tlen.pl>2017-05-09 02:51:31 +0200
commit557569d76e9ccaaef9df4b6d49cb14a55b5e4980 (patch)
tree6b3715c5d83e5332754a4740b08a08d04a64ba78 /butler.py
parentd5f023fbc96d6d6c4d8964032d23cf868ded2d3e (diff)
Waiting for keypress on exit by default
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()