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(cli): add value hint for --dir argument #29

Merged
merged 1 commit into from
Jan 18, 2023

Conversation

beeb
Copy link
Contributor

@beeb beeb commented Jan 18, 2023

Value hints provide the shell a hint about how to complete this argument.

Comment on lines 24 to +29
match &self.minsize {
Some(msize) => {
match msize.parse::<bytesize::ByteSize>() {
Ok(units) => Some(units.0),
Err(_) => None
}
Some(msize) => match msize.parse::<bytesize::ByteSize>() {
Ok(units) => Some(units.0),
Err(_) => None,
},
None => None
None => None,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is rustfmt doing its thing

@sreedevk
Copy link
Owner

I was just thinking about this yesterday. This is awesome. thank you so much for adding this.

@sreedevk sreedevk merged commit b267fcd into sreedevk:development Jan 18, 2023
@beeb beeb deleted the cli_value_hint branch January 18, 2023 16:09
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.

None yet

2 participants