From 2672033648ea4c97f08d7f0ad8604417e48f8cf5 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Fri, 28 Nov 2008 19:21:20 +0000 Subject: [PATCH] Missing -e and -L in const, and missing -o and -u in ArgHandler svn: r11356 --- src/ArgHandler.py | 4 +++- src/const.py.in | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ArgHandler.py b/src/ArgHandler.py index 0d4bfca48..7e255dbe9 100644 --- a/src/ArgHandler.py +++ b/src/ArgHandler.py @@ -55,6 +55,7 @@ from PluginUtils import Tool from gen.plug import PluginManager from ReportBase import CATEGORY_BOOK, CATEGORY_CODE, cl_report +# Note: Make sure to edit const.py POPT_TABLE too! _help = """ Usage: gramps.py [OPTION...] --load-modules=MODULE1,MODULE2,... Dynamic modules to load @@ -67,13 +68,14 @@ Application options -O, --open=FAMILY_TREE Open family tree -i, --import=FILENAME Import file -e, --export=FILENAME Export file + -o, --output=FILENAME Write file -f, --format=FORMAT Specify format -a, --action=ACTION Specify action -p, --options=OPTIONS_STRING Specify options -d, --debug=LOGGER_NAME Enable debug logs -l List Family Trees -L List Family Tree Details - -u Force unlock of family tree + -u, --force-unlock Force unlock of family tree """ #------------------------------------------------------------------------- diff --git a/src/const.py.in b/src/const.py.in index 0c99708a7..b04c90964 100644 --- a/src/const.py.in +++ b/src/const.py.in @@ -200,16 +200,19 @@ NO_GIVEN = "(%s)" % _("none") # #------------------------------------------------------------------------- +# Note: Make sure to edit ArgHandler.py _help string too! # (longName, shortName, type , default, flags, descrip , argDescrip) POPT_TABLE = [ ("open", 'O', str, None, 0, "Open family tree", "FAMILY_TREE"), ("import", 'i', str, None, 0, "Import file", "FILENAME"), + ("export", 'e', str, None, 0, "Export file", "FILENAME"), ("output", 'o', str, None, 0, "Write file", "FILENAME"), ("format", 'f', str, None, 0, 'Specify format', "FORMAT"), ("action", 'a', str, None, 0, 'Specify action', "ACTION"), ("options", 'p', str, None, 0, 'Specify options', "OPTIONS_STRING"), ("debug", 'd', str, None, 0, 'Enable debug logs', "LOGGER_NAME"), ("", 'l', None, None, 0, 'List Family Trees', ""), + ("", 'L', None, None, 0, 'List Family Tree Details', ""), ("force-unlock", 'u', None, None, 0, 'Force unlock of family tree', ""), ]