Skip to content

--format "" (empty string) silently treated as markdown instead of erroring #32

@DTTerastar

Description

@DTTerastar

Command

```
liftoff-export workouts list --format ""
```

Actual

Exits 0, prints full markdown output as if no flag was given.

Expected

Either reject empty value (consistent with how `--format xml` is rejected with `Error: unknown --format "xml" (use markdown or json)`) or normalize to the documented default — but at minimum, the validator should treat `""` the same as any other unknown value rather than slipping past the switch.

Probably a low-impact one — most users wouldn't pass empty — but it points to the validator allowing an undocumented value through.

Severity

cosmetic

Metadata

Metadata

Assignees

Labels

area:format--format markdown/json/csv and codec behavior.kind:bugObserved behavior diverges from documented behavior.priority:lowPolish, cosmetic, or open-ended discussion with no immediate action.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions