requirements-manager 0.1.1

Plain-text requirements management tool
Documentation
---
_version: '1'
uuid: 4893e594-09c3-4b36-a1d8-11bca983dc95
created: 2025-10-25T16:36:45.059918327Z
parents:
- uuid: 007f03ec-58ff-4cfb-b305-58fcf46be529
  fingerprint: 694b343c0aa1e2d40ac2ff3e7805b6caa86fc25876c7dd700182dac26d31ec79
  hrid: USR-006
---
# SYS-013 Template Override via CLI

## Statement

The tool shall allow users to override template content using the `-t` (title) and `-b` (body) CLI flags, which take precedence over template files.

## Implementation Notes

- Flags: `-t/--title <TITLE>` and `-b/--body <BODY>`
- If either flag provided, template is completely ignored
- Title flag formats content as markdown heading: `# {title}`
- Body flag uses raw content
- Both flags can be combined: `# {title}\n\n{body}`
- Empty content check occurs before template lookup

## Verification

- `req add USR -t "Title"` uses CLI title, ignores template
- `req add USR -b "Body"` uses CLI body, ignores template
- `req add USR -t "Title" -b "Body"` uses both CLI values, ignores template
- `req add USR` with no flags uses template (if exists)
- CLI override works even when template file exists