diff --git a/sdcflows/cli/main.py b/sdcflows/cli/main.py index f803b47c52..0ba9b4e076 100644 --- a/sdcflows/cli/main.py +++ b/sdcflows/cli/main.py @@ -139,6 +139,12 @@ def main(argv=None): if exitcode != 0: sys.exit(exitcode) + if len(sdcflows_wf.list_node_names()) == 0: + config.loggers.cli.critical( + 'Workflow did not generate any jobs. Please check your inputs are valid.' + ) + sys.exit(os.EX_USAGE) + # Initialize nipype config config.nipype.init() # Make sure loggers are started diff --git a/sdcflows/cli/parser.py b/sdcflows/cli/parser.py index a873d24d6c..63570fd717 100644 --- a/sdcflows/cli/parser.py +++ b/sdcflows/cli/parser.py @@ -248,8 +248,8 @@ def _bids_filter(value): g_outputs.add_argument( "--no-fmapless", action="store_false", - dest="fieldmapless", - default=False, + dest="fmapless", + default=True, help="Allow fieldmap-less estimation", ) g_outputs.add_argument(