BMAD-METHOD/tools
circus ab70baca59
fix: remove incorrect else branch causing flatten command regression (#452)
This fixes a regression bug where the flatten command would fail with an
error message even when valid arguments were provided.

The bug was:
- First introduced in commit 0fdbca7
- Fixed in commit fab9d5e (v5.0.0-beta.2)
- Accidentally reintroduced in commit ed53943

The else branch at lines 130-134 was incorrectly handling the case when
users provided arguments, showing a misleading error about
'no arguments provided' when arguments were actually present.

Fixes all flatten command variations:
- npx bmad-method flatten
- npx bmad-method flatten --input /path
- npx bmad-method flatten --output file.xml
- npx bmad-method flatten --input /path --output file.xml

Co-authored-by: Brian <bmadcode@gmail.com>
2025-08-17 22:09:56 -05:00
..
builders chore: add code formatting config and pre-commit hooks (#450) 2025-08-16 19:08:39 -05:00
flattener fix: remove incorrect else branch causing flatten command regression (#452) 2025-08-17 22:09:56 -05:00
installer fix: documentation and trademark updates 2025-08-17 19:23:50 -05:00
lib chore: add code formatting config and pre-commit hooks (#450) 2025-08-16 19:08:39 -05:00
md-assets web build optimization 2025-07-06 10:32:39 -05:00
shared fix: documentation and trademark updates 2025-08-17 19:23:50 -05:00
upgraders chore: add code formatting config and pre-commit hooks (#450) 2025-08-16 19:08:39 -05:00
bmad-npx-wrapper.js chore: add code formatting config and pre-commit hooks (#450) 2025-08-16 19:08:39 -05:00
bump-all-versions.js chore: add code formatting config and pre-commit hooks (#450) 2025-08-16 19:08:39 -05:00
bump-expansion-version.js chore: add code formatting config and pre-commit hooks (#450) 2025-08-16 19:08:39 -05:00
cli.js fix: documentation and trademark updates 2025-08-17 19:23:50 -05:00
preview-release-notes.js feat: enhance manual release workflow with automatic release notes 2025-08-16 20:35:41 -05:00
sync-installer-version.js chore: add code formatting config and pre-commit hooks (#450) 2025-08-16 19:08:39 -05:00
sync-version.sh patch: move script to tools folder 2025-08-17 11:04:27 -05:00
update-expansion-version.js chore: add code formatting config and pre-commit hooks (#450) 2025-08-16 19:08:39 -05:00
version-bump.js fix: enable version bumping in manual release workflow 2025-08-16 20:42:35 -05:00
yaml-format.js chore: add code formatting config and pre-commit hooks (#450) 2025-08-16 19:08:39 -05:00