Skip to content

Add comprehensive help message and -h flag support - #34

Merged
markparonyan merged 1 commit into
masterfrom
issue-32
Oct 1, 2026
Merged

markparonyan merged 1 commit into
masterfrom
issue-32

Conversation

@markparonyan

@markparonyan markparonyan commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This change adds a dedicated help function and implements the -h flag to display detailed usage information about dvtm, improving user experience for new users seeking command documentation.

Key Changes

  • New help() function: Displays comprehensive help text including:

    • General usage description
    • Detailed option documentation
    • Common keybindings reference
    • Reference to the full manual
  • Updated usage() function: Now directs users to run dvtm -h for more information

  • Argument parsing enhancement: Modified parse_args() to recognize both --help and -h flags (when -h is the last argument without a value), calling the new help() function instead of usage()

@markparonyan
markparonyan merged commit 6732200 into master Oct 1, 2026
6 checks passed
@markparonyan
markparonyan deleted the issue-32 branch October 1, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant