Skip to content

Commit 37e9c77

Browse files
committed
Add docs on how cargo-credential finds the action argument.
1 parent 8ac04d1 commit 37e9c77

File tree

1 file changed

+5
-0
lines changed
  • crates/credential/cargo-credential/src

1 file changed

+5
-0
lines changed

crates/credential/cargo-credential/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
//! cargo_credential::main(MyCredential);
99
//! }
1010
//! ```
11+
//!
12+
//! This will determine the action to perform (get/store/erase) by looking at
13+
//! the CLI arguments for the first argument that does not start with `-`. It
14+
//! will then call the corresponding method of the trait to perform the
15+
//! requested action.
1116
1217
pub type Error = Box<dyn std::error::Error>;
1318

0 commit comments

Comments
 (0)