Using flags and options is marginally faster than answering to each prompt on each invocation. This lets users to create scripts to automate certain actions. For destructive actions (e.g. SSH key deletion), a -y/--no-confirm flag can be provided to override the prompt. -f/--force can be reserved for those cases when there will be collateral damage from an action (e.g. #66).
For backwards compatibility we can default to interactive mode, unless at least one flag or option has been specified. Code-wise this can be achieved by using Option<T> instead of T.
Using flags and options is marginally faster than answering to each prompt on each invocation. This lets users to create scripts to automate certain actions. For destructive actions (e.g. SSH key deletion), a
-y/--no-confirmflag can be provided to override the prompt.-f/--forcecan be reserved for those cases when there will be collateral damage from an action (e.g. #66).For backwards compatibility we can default to interactive mode, unless at least one flag or option has been specified. Code-wise this can be achieved by using
Option<T>instead ofT.