Commit f73d2a7c authored by Laurent EL SHAFEY's avatar Laurent EL SHAFEY
Browse files

Fix issue #2

parent d60990f8
......@@ -33,7 +33,7 @@ def dumplist(args):
r = db.objects(
protocol=args.protocol,
purposes=args.purpose,
model_ids=(args.client,),
model_ids=args.model_id,
groups=args.group,
languages=args.language,
classes=args.sclass
......@@ -159,7 +159,7 @@ class Interface(BaseInterface):
parser.add_argument('-e', '--extension', default='', help="if given, this extension will be appended to every entry returned.")
parser.add_argument('-p', '--protocol', help="if given, limits the dump to a particular subset of the data that corresponds to the given protocol.", choices=db.protocol_names() if db.is_valid() else ())
parser.add_argument('-u', '--purpose', help="if given, this value will limit the output files to those designed for the given purposes.", choices=db.purposes() if db.is_valid() else ())
parser.add_argument('-C', '--client', type=int, help="if given, limits the dump to a particular client", choices=db.model_ids() if db.is_valid() else ())
parser.add_argument('-m', '--model-id', type=int, help="if given, limits the dump to a particular model", choices=db.model_ids() if db.is_valid() else ())
parser.add_argument('-g', '--group', help="if given, this value will limit the output files to those belonging to a particular protocolar group.", choices=db.groups() if db.is_valid() else ())
parser.add_argument('-l', '--language', help="if given, this value will limit the output files to those belonging to the given languages.", choices=db.languages() if db.is_valid() else ())
parser.add_argument('-c', '--class', dest='sclass', help="if given, this value will limit the output files to those belonging to the given classes.", choices=('client', 'impostor'))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment