title: How do I pass a nested list of integers to Google's command line flags?
body: <p>How do I pass a nested list of integers to <a href="https://github.com/gflags/python-gflags" rel="nofollow"><code>gflags</code></a>? I can get my code working with something like</p>
  
  <pre><code>flags = tf.app.flags
  FLAGS = flags.FLAGS
  flags.DEFINE_float('network_nodes', [784, [5, 5, 32], [5, 5, 64], 1200, 10], 'The network structure')
  </code></pre>
  
  <p>But attempting to use this at the command line with something like</p>
  
  <pre><code>python test.py --network_nodes=[784, 100, 10]
  </code></pre>
  
  <p>results (not surprisingly) in an error:</p>
  
  <blockquote>
    <p><code>test.py: error: argument --network_nodes: invalid int value: '[784, 100, 10]'</code></p>
  </blockquote>
  
  <p>How do I pass a nested list of integers to <code>gflags</code> (or TensofFlow's <code>tf.app.flags</code>)?</p>