Go to file
Akihiro Motoki b0923a3e12 Utility method for boolean argument
In the recent commit, True/False of boolean argument
became case-insensitve and this code is copy-and-paste'ed
in several places.

Now there are several number of patches which add explicit
arguments for *-update or *-list and the code of boolean
argumetns like below will be used more than now.

This commit add a utility method to register such boolean opt.

       parser.add_argument(
           '--enabled',
           dest='enabled', metavar='{True,False}',
           choices=['True', 'true', 'False', 'false'],
           help=_('Whether to enable or disable this rule.'),
           default=argparse.SUPPRESS)

Change-Id: I9575eeef32154a8b92589c2cc7889803216bddb2
2015-01-27 18:51:23 +00:00
2014-09-13 09:44:00 +02:00
2014-01-27 16:56:49 +02:00
2013-11-28 22:31:43 +08:00
2012-01-18 09:39:25 +11:00
2013-11-11 11:29:58 -08:00
2012-01-18 09:39:25 +11:00
2013-06-01 10:08:50 +02:00
2015-01-07 09:47:21 +01:00
2014-04-30 02:46:40 +00:00
2014-10-20 09:34:34 +02:00

This is the client API library for Neutron.

Description
OpenStack Networking (Neutron) Client
Readme 39 MiB
Languages
Python 100%