1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//! # *genpwd* - a Rust command line program
//! This program generates a randomized password from character classes. <br/>
//! The minmum length of generated passwords is 10. <br/>
//! Character classes are \[a-z\], \[A-Z\], \[0-9\] and special sign \!"$%&/?\\\(\)\{\}\[\]\+\*~#'<>|,;\.:\-_.
//!
//! ## Information
//! * **Version:** 0.2.0
//! * **Documentation:** <a href="https://docs.rs/genpwd">generated documentation</a>
//! * **Supported OS:** Linux, Windows
//! * **Contact:** <a href="mailto:obr.rs@gmx.de">"Olaf Brozio" <obr.rs@gmx.de></a>
//!
//! ## Rust version
//! Minimum version is 1.54; see: [clap](https://github.com/clap-rs/clap#Aspirations), [rand](https://github.com/rust-random/rand#rust-version-requirements)
//!
//! ## Dependencies
//! * [clap](https://crates.io/crates/clap) - Minimum version is 2.34.0
//! * [rand](https://crates.io/search?q=rand) - Minimum Version is 0.8.4
//!
//! ## Usage
//! <pre><code>genpwd [OPTIONS]
//!
//! FLAGS:รครถ
//! -h, --help Prints help information
//! -V, --version Prints version information<br/>
//! OPTIONS:
//! -l, --length <value> Minimal length of password [minimum: 10] [default: 12]
//! -o, --occurrence <value> Minimal occurrence of each character class [default: 2]
//! </code></pre>
//! ## Examples
//! <pre><code>>genpwd
//! 9hL]0z.G&r-O
//! </code></pre>
//! <pre><code>>genpwd -o 4
//! z16N\6'8NkvyXK(<
//! </code></pre>
//! <pre><code>>genpwd -l 20
//! 5X,qN~f02143c-2q6>]1
//! </code></pre>
//! <pre><code>>genpwd -o 3 -l 14
//! *;4!7c0KHLdc:i
//! </code></pre>
//!
//! ## License
//! **genpwd** is distributed under the terms of both the MIT license and the Apache License (Version 2.0).<br/>
//! See the [LICENSE-APACHE](../../../LICENSE-APACHE) and [LICENSE-MIT](../../../LICENSE-MIT) files in this repository for more information.
//!
//! ## Changes for version 0.2.0
//! * README.md / documentation
//! * Help message uses parentheses instead of sqare brackets.
//! * Version of dependency **clap** is "^2.34.0".
//! * Version of dependency **rand** "^0.8.4".
//!
extern crate clap;
use Minimum;
use generate;