Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syntax suggestion #7

Open
ahangarha opened this issue Nov 7, 2018 · 2 comments
Open

syntax suggestion #7

ahangarha opened this issue Nov 7, 2018 · 2 comments

Comments

@ahangarha
Copy link
Contributor

ahangarha commented Nov 7, 2018

I think if the syntax be as such, it would be much easier and more logical:

SYNTAX

cheat topic [OPTIONS] [tag1] [tag2] [tag3]...

EXAMPLES:

cheat find

shows all or first n cards related to find*

cheat find -T

shows all or first n cards related to find* along with their tags

cheat find -add tag1 tag2

add new card with tag1 and tag2 to find.yaml cheatsheet

cheat find exec

shows all or first n cards related to find* with exec tag

cheat find exec regex

shows all or first n cards related to find* with exec or regex tag

cheat find exec+regex

shows all or first n cards related to find* with exec and regex tag

@MCSH
Copy link
Owner

MCSH commented Nov 7, 2018

The original usage was based on Unix's philosophy. It's not something I would oppose but changing the syntax this much would require a major version change. I would hold this suggestion to be reviewed later.

@ahangarha
Copy link
Contributor Author

Understood. You are right. It is better to keep it standard.
You may close this issue

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

No branches or pull requests

2 participants