diff options
author | Daniel Mueller <deso@posteo.net> | 2020-04-11 15:00:06 -0700 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2020-04-11 15:00:06 -0700 |
commit | f2ace56200f0229a4dcbd1767f48a39e1daa343d (patch) | |
tree | 1edf76d5b95a3df163906035a2ce4ccb72307c66 /src/main.rs | |
parent | fafbf4a1bf635d5eea049cf561fbf8aa293c8e2b (diff) | |
download | nitrocli-f2ace56200f0229a4dcbd1767f48a39e1daa343d.tar.gz nitrocli-f2ace56200f0229a4dcbd1767f48a39e1daa343d.tar.bz2 |
Rename arg_defs.rs to args.rs
We have never been fully satisfied with the name arg_defs. Now that we
have gotten rid of the formerly used args module, this change renames
arg_defs to args.
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index a2c4f48..27097c9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -68,7 +68,7 @@ mod redefine; #[macro_use] mod arg_util; -mod arg_defs; +mod args; mod commands; mod error; mod pinentry; @@ -116,7 +116,7 @@ where #[allow(missing_debug_implementations)] pub struct ExecCtx<'io> { /// The Nitrokey model to use. - pub model: Option<arg_defs::DeviceModel>, + pub model: Option<args::DeviceModel>, /// See `RunCtx::stdout`. pub stdout: &'io mut dyn io::Write, /// See `RunCtx::stderr`. @@ -147,7 +147,7 @@ impl<'io> Stdio for ExecCtx<'io> { fn handle_arguments(ctx: &mut RunCtx<'_>, args: Vec<String>) -> Result<()> { use structopt::StructOpt; - match arg_defs::Args::from_iter_safe(args.iter()) { + match args::Args::from_iter_safe(args.iter()) { Ok(args) => { let mut ctx = ExecCtx { model: args.model, |