diff options
Diffstat (limited to 'src/args.rs')
-rw-r--r-- | src/args.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/args.rs b/src/args.rs index 56a10b4..744245c 100644 --- a/src/args.rs +++ b/src/args.rs @@ -17,6 +17,8 @@ // * along with this program. If not, see <http://www.gnu.org/licenses/>. * // ************************************************************************* +use std::ffi; + /// Provides access to a Nitrokey device #[derive(structopt::StructOpt)] #[structopt(name = "nitrocli")] @@ -82,6 +84,9 @@ Command! { Status => crate::commands::status, /// Interacts with the device's unencrypted volume Unencrypted(UnencryptedArgs) => |ctx, args: UnencryptedArgs| args.subcmd.execute(ctx), + /// An extension and its arguments. + #[structopt(external_subcommand)] + Extension(Vec<ffi::OsString>) => crate::commands::extension, ] } |