allow specifying a duration like for --sleep
@ -9,6 +9,7 @@
""" """
import re
import time
import logging
import operator
from . import util, exception
@ -87,8 +88,15 @@ def action_exec(opts):
def action_wait(opts):
if opts:
seconds = util.build_duration_func(opts)
def _wait(args):
time.sleep(seconds())
else:
input("Press Enter to continue")
return _wait