Add docs on how cargo-credential finds the action argument.

This commit is contained in:
Eric Huss 2020-12-04 11:21:16 -08:00
parent 8ac04d1e63
commit 37e9c77a33

View File

@ -8,6 +8,11 @@
//! cargo_credential::main(MyCredential);
//! }
//! ```
//!
//! This will determine the action to perform (get/store/erase) by looking at
//! the CLI arguments for the first argument that does not start with `-`. It
//! will then call the corresponding method of the trait to perform the
//! requested action.
pub type Error = Box<dyn std::error::Error>;