It may seem heavy-weight at first, but the argparse module can do exactly what you want. The first example on the page shows an integer-only argument (notice the type=int part):
parser = argparse.ArgumentParser(description='Process some integers.')
parser.add_argument('integers', metavar='N', type=int, nargs='+',
help='an integer for the accumulator')
Calling that example with python deleteme.py 3.5 (i.e. 3.5 is the argument that should be an integer) gives the following output:
usage: scriptname.py [-h] [--sum] N [N ...]
scriptname.py: error: argument N: invalid int value: '3.5'