Skip to content

Commit 2330660

Browse files
shuvebclaude
andcommitted
Add available commands to --help output
The bootstrap argparse help was missing any mention of subcommands. Added an epilog listing auth, projects, and tui commands with descriptions, and noting that the default (no args) launches the TUI. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f5115c9 commit 2330660

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/mfbt/__main__.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,20 @@ def get_version() -> str:
1818

1919
def build_parser() -> argparse.ArgumentParser:
2020
"""Build the bootstrap argument parser."""
21+
epilog = """\
22+
commands:
23+
(none) Launch interactive TUI (default)
24+
auth Authentication commands (login, status, refresh, logout)
25+
projects Manage projects (list, show, create, switch, archive, delete)
26+
tui Launch interactive TUI
27+
28+
Run 'mfbt <command> --help' for details on a specific command.
29+
"""
2130
parser = argparse.ArgumentParser(
2231
prog="mfbt",
2332
description="CLI tool for the mfbt platform",
33+
epilog=epilog,
34+
formatter_class=argparse.RawDescriptionHelpFormatter,
2435
)
2536
parser.add_argument(
2637
"--version",

0 commit comments

Comments
 (0)