cli: Register VirtCLIArguments at class definition time

The VirtCLIArguments, (for example, path=, size=, etc. for --disk)
are only registered when a VirtCLIParser is actually initialized.
This seems backwards, since those arguments are really more immutable
factors of the actual command line parsing, so make more sense only
initializing them once, at class definition time.

This switches to use that pattern. This makes the parsing flow a bit
cleaner and can be a basis for future improvements.
This commit is contained in:
Cole Robinson 2016-06-13 16:30:29 -04:00
parent 4db0cd2eab
commit 7cd04a9f86

File diff suppressed because it is too large Load Diff