cheat icon indicating copy to clipboard operation
cheat copied to clipboard

syntax suggestion

Open ahangarha opened this issue 7 years ago • 2 comments

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

ahangarha avatar Nov 07 '18 13:11 ahangarha

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.

MCSH avatar Nov 07 '18 20:11 MCSH

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

ahangarha avatar Nov 07 '18 22:11 ahangarha