Skip to content

Commit 04b98d4

Browse files
committed
Fix help command alignment
Intuitive rename of base.md to help.md to follow the pattern where meza commands have a .md file by the same name. meza # Shows help.md (general help) meza --help # Shows help.md (general help) meza help # Shows help.md (general help) meza help deploy # Shows deploy.md (deploy command help) meza help --help # Shows help.md (help for help command itself) meza deploy --help # Shows deploy.md (deploy command help) Fixes Issue #211
1 parent 19193c2 commit 04b98d4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

manual/meza-cmd/MIGRATION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def display_docs(name):
6262
All Meza commands now have comprehensive Markdown documentation:
6363

6464
- [`backup.md`](backup.md) - Environment backup operations
65-
- [`base.md`](base.md) - Main Meza overview and command reference
65+
- [`help.md`](help.md) - Main Meza overview and command reference
6666
- [`config.md`](config.md) - Configuration management
6767
- [`create.md`](create.md) - Wiki creation commands
6868
- [`debug.md`](debug.md) - Debug and troubleshooting
File renamed without changes.

src/scripts/meza.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,10 @@ def main(argv):
121121
# meza requires a command parameter. No first param, no command. Display
122122
# help. Also display help if explicitly specifying help.
123123
if not argv:
124-
display_docs('base')
124+
display_docs('help')
125125
sys.exit(1)
126126
elif argv[0] in ('-h', '--help'):
127-
display_docs('base')
127+
display_docs('help')
128128
sys.exit(0) # asking for help doesn't give error code
129129
elif argv[0] in ('-v', '--version'):
130130
version = subprocess.check_output(
@@ -2212,7 +2212,7 @@ def meza_command_help(argv):
22122212
argv (list): Command line arguments
22132213
"""
22142214
if len(argv) < 1:
2215-
display_docs('base')
2215+
display_docs('help')
22162216
return
22172217

22182218
command = argv[0]

0 commit comments

Comments
 (0)