From ef00e4ca6b17cc73d299a051058aabb13a716fa3 Mon Sep 17 00:00:00 2001
From: Vincent Le Gallic <legallic@crans.org>
Date: Mon, 8 Apr 2013 21:10:11 +0200
Subject: [PATCH] Alias -e pour --edit

---
 cranspasswords.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cranspasswords.py b/cranspasswords.py
index 1f32e24..e7ea4ac 100755
--- a/cranspasswords.py
+++ b/cranspasswords.py
@@ -470,7 +470,7 @@ if __name__ == "__main__":
 
     # Actions possibles
     action_grp = parser.add_mutually_exclusive_group(required=False)
-    action_grp.add_argument('--edit',action='store_const',dest='action',
+    action_grp.add_argument('-e', '--edit',action='store_const',dest='action',
         default=show_file,const=edit_file,
         help="Editer (ou créer)")
     action_grp.add_argument('--view',action='store_const',dest='action',
-- 
GitLab