Skip to content

Commit b97eddc

Browse files
author
replydev
committed
Print compatible backups
1 parent 8e0394e commit b97eddc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/argument_functions.rs

Lines changed: 6 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 <appname> <filename> | Import a backup from a given application");
10+
println!("-i,--import <appname> <path> | 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");
@@ -38,7 +38,11 @@ pub fn import(args: Vec<String>){
3838
println!("Successfully imported database");
3939
}
4040
else{
41-
println!("Invalid arguments, type cotp --import <backup_format> <path>");
41+
println!("Invalid arguments, type cotp --import <appname> <path>");
42+
println!("cotp can import backup from:");
43+
println!("\"cotp\"");
44+
println!("\"aegis\"");
45+
println!("\"andotp\"");
4246
}
4347
}
4448

0 commit comments

Comments
 (0)