Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions mlpstorage_py/cli/help_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@
--results-dir/-rd PATH
[storage positional: file | object]
Optional:
--checkpoint-subset (8B at 8 processes only; declares a Subset run)
--exec-type/-et {mpi,docker} (default: mpi)
--hosts/-s HOST... (default: 127.0.0.1)
--num-checkpoints-read/-ncr N (default: 10; closed allows 10 or 0)
Expand Down
11 changes: 11 additions & 0 deletions tests/unit/test_help_behavior.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,17 @@ def test_help_all_prints_synopsis(self, capsys):
out = capsys.readouterr().out
assert 'SYNOPSIS' in out

def test_help_all_documents_checkpoint_subset(self, capsys):
"""--checkpoint-subset (added with the parser in 828cc63, storage#841)
must appear in the curated reference — the page is hand-maintained,
not generated from argparse, so a parser-only change silently omits
the flag here."""
with patch('sys.argv', ['mlpstorage', '--help_all']):
with pytest.raises(SystemExit):
parse_arguments()
out = capsys.readouterr().out
assert '--checkpoint-subset' in out

def test_help_all_prints_kv_section(self, capsys):
with patch('sys.argv', ['mlpstorage', '--help_all']):
with pytest.raises(SystemExit):
Expand Down
Loading