1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2024-11-23 05:47:53 +00:00

add help command

This commit is contained in:
Adrien Waksberg 2016-11-05 15:34:11 +01:00
parent 3d48ff95b9
commit 0e86be5461
3 changed files with 39 additions and 0 deletions

15
bin/mpw
View file

@ -46,4 +46,19 @@ command = "#{bin_dir}/mpw-#{ARGV[0]}"
if Dir.glob("#{bin_dir}/mpw-*").include?("#{command}")
Kernel.load(command)
else
puts "#{I18n.t('option.usage')}: mpw COMMAND [options]\n\n"
puts 'Commands:'
puts " add #{I18n.t('command.add')}"
puts " config #{I18n.t('command.config')}"
puts " copy #{I18n.t('command.copy')}"
puts " delete #{I18n.t('command.delete')}"
puts " export #{I18n.t('command.export')}"
puts " genpwd #{I18n.t('command.genpwd')}"
puts " import #{I18n.t('command.import')}"
puts " list #{I18n.t('command.list')}"
puts " update #{I18n.t('command.update')}"
puts " wallet #{I18n.t('command.wallet')}"
exit 3
end

View file

@ -33,6 +33,18 @@ en:
warning:
select: 'Your choice is not a valid element!'
command:
add: "Add a new item"
config: "Manage the general config"
copy: "Copy a login, password or OTP code"
delete: "Delete an item"
export: "Export the data in plain text"
genpwd: "Generate a password"
import: "Import data from a file"
list: "Print the items"
update: "Update an item"
wallet: "Manage the wallet config"
option:
add: "Add an item or key"
alpha: "Use letter to generate a password"

View file

@ -33,6 +33,18 @@ fr:
warning:
select: "Votre choix n'est pas un élément valide!"
command:
add: "Ajoute un nouvel élément"
config: "Gère la configuration générale"
copy: "Copie un identifiant, un mot de passe ou un code OTP"
delete: "Supprimer un élément d'un portefeuille"
export: "Exporte les données"
genpwd: "Génére un mot de passe"
import: "Importe des données"
list: "Liste les éléments d'un portefeuille"
update: "Met à jour un élément"
wallet: "Gére la configuration d'un portefeuille"
option:
add: "Ajoute un élément ou une clé"
alpha: "Utilise des lettres dans la génération d'un mot de passe"