Note that "lxc-create -t ubuntu -h" would give the ubuntu template help output and not leave a partially created container.
Because of the architecture of the lxc templates, there doesn't seem to be a simple, clean way of having the lxc-create script clean up after the ubuntu template was called with -h or --help. Two options are (1) have lxc-create look for -h or --help in the template arguments, or (2) have the ubuntu template return 1 (error) after --help.
Note that "lxc-create -t ubuntu -h" would give the ubuntu template help output and not leave a partially created container.
Because of the architecture of the lxc templates, there doesn't seem to be a simple, clean way of having the lxc-create script clean up after the ubuntu template was called with -h or --help. Two options are (1) have lxc-create look for -h or --help in the template arguments, or (2) have the ubuntu template return 1 (error) after --help.
I will take the first approach.