mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-03-08 04:58:29 +03:00
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:
parent
4db0cd2eab
commit
7cd04a9f86
1314
virtinst/cli.py
1314
virtinst/cli.py
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user