aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/fancy_sleep.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/fancy_sleep.py b/scripts/fancy_sleep.py
index 5839a32..a87b33c 100755
--- a/scripts/fancy_sleep.py
+++ b/scripts/fancy_sleep.py
@@ -20,6 +20,7 @@ Usage: fancy-sleep [options] TIME [--] [COMMAND...]
Options:
-h, --help Display this help message
+ --target Enable the display of the target time
'''
@@ -227,8 +228,9 @@ def main():
print('ERROR: TIME is unparsable or equals to 0', file=sys.stderr)
sys.exit(1)
- print('Launched at:', curtime.strftime('%F %T'))
- print('Run until:', target_time.strftime('%F %T'))
+ #print('Launched at:', curtime.strftime('%F %T'))
+ if args['--target']:
+ print('Run until:', target_time.strftime('%F %T'))
sys.stdout.flush()
try: