Introduce a bool CLI option type
authorIustin Pop <iustin@google.com>
Mon, 22 Mar 2010 16:23:36 +0000 (17:23 +0100)
committerIustin Pop <iustin@google.com>
Tue, 23 Mar 2010 08:35:05 +0000 (09:35 +0100)
commite7b61bb02f87d4b580b059dda56625b575384b2a
tree86fd9b5435765409845847de9f53498ac546ea98
parented904904a9d9b91f8d44879a074909a33661e3dc
Introduce a bool CLI option type

This option type enforces its value to either True or False, relieving
the scripts from manually parsing the values in each function.

We also update the bash completion code to use the option type if
possible.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
autotools/build-bash-completion
lib/cli.py
scripts/gnt-node