File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ pub fn help(){
7
7
println ! ( "-a,--add <secret> <issuer> <label> | Add a new OTP code" ) ;
8
8
println ! ( "-r,--remove <secret> <issuer> <label> | Remove an OTP code" ) ;
9
9
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" ) ;
11
11
println ! ( "-ex,--export | Export the entire database in a plaintext json format" ) ;
12
12
println ! ( "-j,--json | Print results in json format" ) ;
13
13
println ! ( "-h,--help | Print this help" ) ;
@@ -19,7 +19,7 @@ pub fn import(args: Vec<String>){
19
19
let elements: Vec < database_loader:: OTPElement > ;
20
20
21
21
match & args[ 2 ] [ ..] {
22
- "andotp" => result = importers:: and_otp:: import ( & args[ 3 ] ) ,
22
+ "cotp" | " andotp" => result = importers:: and_otp:: import ( & args[ 3 ] ) ,
23
23
"aegis" => result = importers:: aegis:: import ( & args[ 3 ] ) ,
24
24
_=> {
25
25
println ! ( "Invalid argument: {}" , & args[ 2 ] ) ;
You can’t perform that action at this time.
0 commit comments