diff options
| author | termie <github@anarkystic.com> | 2011-02-24 18:00:45 +0000 |
|---|---|---|
| committer | Tarmac <> | 2011-02-24 18:00:45 +0000 |
| commit | 51c1c948b9205ba8a8e3cb21cbb7e05d8a184a8e (patch) | |
| tree | d463eb549f03affcce4f05b3ef0f956794718174 /bin/nova-api | |
| parent | 6a77a988025d75040c5b82369f807f1dccb9608e (diff) | |
| parent | 3115a65f9981371ea8587a288b360c3c519de865 (diff) | |
Some first steps towards resolving some of the issues brought up on the mailing list related to documenting flags.
This patch helps expose some of the features of gflags that we were sort of skipping past, such as organizing flags by the file that defined them in help.
There are still some things to fix, for example all the flags defined in nova.flags should be moved to other files, and the ones that are there currently show up under nova.log, but previously they were all in one spot anyway so this is still fully a step forward.
Manager import was moved into Service's init so that the dynamic flags get loaded earlier so we can show them in the help.
Diffstat (limited to 'bin/nova-api')
| -rwxr-xr-x | bin/nova-api | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/nova-api b/bin/nova-api index d5efb4687..cf140570a 100755 --- a/bin/nova-api +++ b/bin/nova-api @@ -48,6 +48,9 @@ flags.DEFINE_integer('ec2_listen_port', 8773, 'port for ec2 api to listen') flags.DEFINE_string('osapi_listen', "0.0.0.0", 'IP address for OpenStack API to listen') flags.DEFINE_integer('osapi_listen_port', 8774, 'port for os api to listen') +flags.DEFINE_flag(flags.HelpFlag()) +flags.DEFINE_flag(flags.HelpshortFlag()) +flags.DEFINE_flag(flags.HelpXMLFlag()) API_ENDPOINTS = ['ec2', 'osapi'] |
