Owner can be overridden explicitly, otherwise it's the running unix user.
The description is optional and passed straight through.
import argparse
import os
import yaml
+import getpass
def config_file(string):
config = {}
metavar='DIR',
help='path to archive results in',
)
+ parser.add_argument(
+ '--description',
+ help='job description'
+ )
+ parser.add_argument(
+ '--owner',
+ help='job owner'
+ )
args = parser.parse_args()
return args
ctx.summary = {}
+ if ctx.owner is not None:
+ ctx.summary['owner'] = ctx.owner
+ else:
+ ctx.summary['owner'] = getpass.getuser();
+
+ if ctx.description is not None:
+ ctx.summary['description'] = ctx.description
+
ctx.config['tasks'][:0] = [
{'internal.check_conflict': None},
{'internal.base': None},