diff options
author | emkael <emkael@tlen.pl> | 2017-05-04 23:07:48 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-05-09 02:51:31 +0200 |
commit | 557569d76e9ccaaef9df4b6d49cb14a55b5e4980 (patch) | |
tree | 6b3715c5d83e5332754a4740b08a08d04a64ba78 /butler.py | |
parent | d5f023fbc96d6d6c4d8964032d23cf868ded2d3e (diff) |
Waiting for keypress on exit by default
Diffstat (limited to 'butler.py')
-rw-r--r-- | butler.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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() |