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

feat: add "-all" option in preview #23

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

chardskarth
Copy link
Contributor

For #20

@@ -7,7 +7,20 @@ function _changelogsh_preview {
raw_version=$1
fi

if [ $raw_version != "Unreleased" ]; then
if [ $raw_version == "-all" ]; then
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
if [ $raw_version == "-all" ]; then
if [ $raw_version == "--all" ]; then

single dash is normally for one letter shortcuts like -r for --recursive and -d for --daemon. double dash is more appropriate here for --all

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the review @clrke. Awesome as always!

However, I suggest we keep "-all" like how "find" accepts options since this tool won't be a full blown cli tool and won't be having any other options soon (even short and long version of "all")

But I defer to what @xdgimf @TheoryOfNekomata might think.

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.

2 participants