Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions sacred/commandline_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,3 +291,13 @@ class CaptureOption(CommandLineOption):
@classmethod
def apply(cls, args, run):
run.capture_mode = args


class RunIdOption(CommandLineOption):
"""Set the _id used by this run's observers"""
arg = 'RUN_ID'
arg_description = "id used by this run's observers"

@classmethod
def apply(cls, args, run):
run._id = args