Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit bdefa36

Browse files
author
John Andersen
committed
cli: Remove requirement on output-specs and remap
Fixes: #79 Signed-off-by: John Andersen <[email protected]>
1 parent af38238 commit bdefa36

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
### Changed
99
- OperationImplementation add_label and add_orig_label methods now use op.name
1010
instead of ENTRY_POINT_ORIG_LABEL and ENTRY_POINT_NAME.
11+
- Make output specs and remap arguments optional for Operations CLI commands.
1112
### Fixed
1213
- MemoryOperationImplementationNetwork instantiates OperationImplementations
1314
using their `withconfig()` method.

dffml/util/cli/cmds.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ class BaseOrchestratorCMD(CMD):
128128
arg_dff = Arg('-dff',
129129
type=BaseOrchestrator.load,
130130
default=MemoryOrchestrator)
131-
arg_output_specs = Arg('-output-specs', required=True, nargs='+',
132-
action=ParseOutputSpecsAction)
131+
arg_output_specs = Arg('-output-specs', nargs='+',
132+
action=ParseOutputSpecsAction, default=[])
133133
arg_inputs = Arg('-inputs', nargs='+',
134134
action=ParseInputsAction, default=[],
135135
help='Other inputs to add under each ctx (repo\'s src_url will ' + \
@@ -138,7 +138,7 @@ class BaseOrchestratorCMD(CMD):
138138
help='Definition to be used for repo.src_url.' + \
139139
'If set, repo.src_url will be added to the set of inputs ' + \
140140
'under each context (which is also the repo\'s src_url)')
141-
arg_remap = Arg('-remap', nargs='+', required=True,
141+
arg_remap = Arg('-remap', nargs='+', default=[],
142142
action=ParseRemapAction,
143143
help='For each repo, -remap output_operation_name.sub=feature_name')
144144

0 commit comments

Comments
 (0)