~alex-moreati/python-unixcommands/trunk

« back to all changes in this revision

Viewing changes to unix_commands/sleep.py

  • Committer: Alex Willmer
  • Date: 2009-10-31 12:56:49 UTC
  • Revision ID: alex@moreati.org.uk-20091031125649-i6atsyltjyj4pdgg
Add sub-second resolution for sleep

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
parser = argparse.ArgumentParser(prog='sleep.py', description=__doc__)
11
11
 
12
 
parser.add_argument('NUMBER', type=int, nargs='+')
 
12
parser.add_argument('NUMBER', type=float, nargs='+')
13
13
 
14
14
args = parser.parse_args()
15
15