Actions
Bug #2868
open"zoneadm .. uninstall -h" superfluosly asks for confirmation
Start date:
2012-06-11
Due date:
% Done:
0%
Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Description
The request for help "-h" (and the dry-run "-n") ask for confirmation - whether the user really wants the zone destroyed. However, at least for the help text which does nothing related to the actual zone - only prints the help and exits - this confirmation request is a useless annoyance. Arguably likewise for the dry-run as well.
# zoneadm -z zone1 uninstall -h Are you sure you want to uninstall zone zone1 (y/[n])? y Usage: uninstall: [-hFn] usage: uninstall [-F] [brand-specific args] Uninstall the configuration from the system. The -F flag can be used to force the action. All other arguments are passed to the brand uninstall function; see brands(5) for more information.
QUEST: If the help action was requested (-h), don't ask to confirm if the zone should be uninstalled. If possible, don't even require that an existing zone be specified.
Actions