Skip to content

Commit 8e0394e

Browse files
author
replydev
committed
cotp and andOTP use the same json format
1 parent 6b92f43 commit 8e0394e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/argument_functions.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub fn help(){
77
println!("-a,--add <secret> <issuer> <label> | Add a new OTP code");
88
println!("-r,--remove <secret> <issuer> <label> | Remove an OTP code");
99
println!("-e,--edit <id> <secret> <issuer> <label> | Edit an OTP code");
10-
println!("-i,--import aegis,andotp <filename> | Import a backup from a given application");
10+
println!("-i,--import <appname> <filename> | Import a backup from a given application");
1111
println!("-ex,--export | Export the entire database in a plaintext json format");
1212
println!("-j,--json | Print results in json format");
1313
println!("-h,--help | Print this help");
@@ -19,7 +19,7 @@ pub fn import(args: Vec<String>){
1919
let elements: Vec<database_loader::OTPElement>;
2020

2121
match &args[2][..]{
22-
"andotp" => result = importers::and_otp::import(&args[3]),
22+
"cotp" | "andotp" => result = importers::and_otp::import(&args[3]),
2323
"aegis" => result = importers::aegis::import(&args[3]),
2424
_=> {
2525
println!("Invalid argument: {}", &args[2]);

0 commit comments

Comments
 (0)