@@ -32,7 +32,7 @@ type CmdOption struct {
32
32
33
33
// Print the program's usage string and exit
34
34
func printUsage () error {
35
- // getopt.Usage()
35
+ // getopt.Usage()
36
36
os .Exit (0 )
37
37
38
38
return nil
@@ -102,8 +102,9 @@ func performAction(optMap map[string]interface{}) {
102
102
}
103
103
104
104
flagsActionsMap := map [string ]voidFunc {
105
- "show" : setShowPasswords ,
106
- "copy" : setCopyPasswordToClipboard ,
105
+ "show" : setShowPasswords ,
106
+ "copy" : setCopyPasswordToClipboard ,
107
+ "assume-yes" : setAssumeYes ,
107
108
}
108
109
109
110
// Flag actions - always done
@@ -168,7 +169,7 @@ func initializeCmdLine(parser *argparse.Parser) map[string]interface{} {
168
169
{"I" , "init" , "Initialize a new database" , "<path>" , "" },
169
170
{"d" , "decrypt" , "Decrypt password database" , "<path>" , "" },
170
171
{"C" , "clone" , "Clone an entry with <id>" , "<id>" , "" },
171
- {"R" , "remove" , "Remove an entry with <id>" , "<id>" , "" },
172
+ {"R" , "remove" , "Remove an entry with <id> or <id-range> " , "<id>" , "" },
172
173
{"U" , "use-db" , "Set <path> as active database" , "<path>" , "" },
173
174
{"f" , "find" , "Search entries with <term>" , "<term>" , "" },
174
175
{"E" , "edit" , "Edit entry by <id>" , "<id>" , "" },
@@ -188,6 +189,7 @@ func initializeCmdLine(parser *argparse.Parser) map[string]interface{} {
188
189
{"g" , "genpass" , "Generate a strong password (length: 12 - 16)" , "" , "" },
189
190
{"s" , "show" , "Show passwords when listing entries" , "" , "" },
190
191
{"c" , "copy" , "Copy password to clipboard" , "" , "" },
192
+ {"y" , "assume-yes" , "Assume yes to actions requiring confirmation" , "" , "" },
191
193
{"v" , "version" , "Show version information and exit" , "" , "" },
192
194
{"h" , "help" , "Print this help message and exit" , "" , "" },
193
195
}
0 commit comments