aboutsummaryrefslogtreecommitdiff
path: root/tools/democonf2rumba.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/democonf2rumba.py')
-rwxr-xr-xtools/democonf2rumba.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/democonf2rumba.py b/tools/democonf2rumba.py
index 383268c..cda112c 100755
--- a/tools/democonf2rumba.py
+++ b/tools/democonf2rumba.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env/python
+#!/usr/bin/env python
import argparse
import re
@@ -153,7 +153,7 @@ if __name__ == '__main__':
help='The kind of prototype plugin to use to run'
' the experiment.')
- parser.add_argument('--config', metavar='CONFIG', type=str,
+ parser.add_argument('-C', '--conf', metavar='CONFIG', type=str,
required=True,
help='Path to the config file to parse')
@@ -225,20 +225,20 @@ if __name__ == '__main__':
exit(1)
raise ValueError('Unexpected testbed: %s.' % args.testbed)
- if args.irati:
+ if args.prototype == 'irati':
import rumba.prototypes.irati as irati
exp_class = irati.Experiment
- elif args.ouroboros:
+ elif args.prototype == 'ouroboros':
import rumba.prototypes.ouroboros as ouroboros
exp_class = ouroboros.Experiment
- elif args.rlite:
+ elif args.prototype == 'rlite':
import rumba.prototypes.rlite as rlite
exp_class = rlite.Experiment
else:
raise ValueError('Unexpected prototype: %s.' % args.testbed)
try:
- make_experiment(args.config,
+ make_experiment(args.conf,
experiment_class=exp_class,
experiment_kwargs={},
testbed_class=test_class,