title: python - argparse error: unrecognized argument when pass integer argument
body: <p>I'm trying to pass the arguments to tensorflow parameter. 
  if nothing in to command line pass the default in code.</p>
  
  <p>script - </p>
  
  <pre><code>import argparse
  import tensorflow as tf
  import sys
  import numpy as np
  DEFAULT_SEED = 42
  parser = argparse.ArgumentParser(description='Process some parameters.')
  parser.add_argument('-s','--seed', help='random seed', type=int, default=DEFAULT_SEED)
  args=parser.parse_args()
  tf.set_random_seed(args.seed)
  </code></pre>
  
  <p>-error message </p>
  
  <pre><code>usage: ipykernel_launcher.py [-h] [-s SEED]ipykernel_launcher.py: error: unrecognized arguments: -f C:\Users\shin\AppData\Roaming\jupyter\runtime\kernel-f7591362-5cb0-4a7f-ba51-b6ceac2ee819.json
  
  An exception has occurred, use %tb to see the full traceback.
  </code></pre>
  
  <p>this error occurs at args=parser.parse_args().
  how i can fix it?</p>