gtopt/resolve_planning_args.hpp file

Resolve planning file arguments and directory context.

Provides a single free function that normalises the planning-file list and directory options before any JSON parsing takes place. Three convenience features are implemented:

  1. Directory as argument: dirdir/basename(dir).json with input/output directories set relative to dir.
  2. Bare stem fallback: name (not a dir, not a file) → name.json.
  3. Auto-detect CWD: no files given → look for cwd_name.json.

Namespaces

namespace gtopt