Skip to content

Conversation

@Kausheya2006
Copy link

We have to use it along with --list -p

Example usage :

python3 tldr.py --list -p osx -x  # it will list all commands available only for macos

This allows users to easily identify platform-specific commands.

@kbdharun kbdharun added the hacktoberfest-accepted PRs which are eligible for hacktoberfest but won't get merged before 31st label Oct 29, 2025
@kbdharun kbdharun self-requested a review October 29, 2025 00:22
@kbdharun kbdharun changed the title Added new flag : -x to list commands exclusive to a platform feat: add -x flag to list commands exclusive to a platform Oct 29, 2025
parser.add_argument('-x', '--exclusive',
default=False,
action='store_true',
help="Use with --list and -p to list commands exclusive to the specfied platform")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
help="Use with --list and -p to list commands exclusive to the specfied platform")
help="Use with --list and --platform to list commands exclusive to the specfied platform")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest-accepted PRs which are eligible for hacktoberfest but won't get merged before 31st

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants