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
Mangen no longer generates suggestions for options that don't take values #4506
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,6 +70,13 @@ fn possible_values() { | |
common::assert_matches_path("tests/snapshots/possible_values.bash.roff", cmd); | ||
} | ||
|
||
#[test] | ||
fn flag_without_value() { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you verify the behavior of the test changed with clab_mangen changes? I see other tests using SetTrue but their snapshots didn't change, implying this PR didn't have an affect (see also my other comment). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, I see i was being too naive with the solution. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's strange because the change definitely does work on the example provided in the bug report |
||
let name = "my-app"; | ||
let cmd = common::flag_without_value(name); | ||
common::assert_matches_path("tests/snapshots/flag_without_value.bash.roff", cmd); | ||
} | ||
|
||
#[test] | ||
fn sub_subcommands_help() { | ||
let name = "my-app"; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.ie /n(.g .ds Aq /(aq | ||
.el .ds Aq ' | ||
.TH my-app 1 "my-app " | ||
.SH NAME | ||
my/-app | ||
.SH SYNOPSIS | ||
/fBmy/-app/fR [/fB/-/-is_bool/fR] [/fB/-h/fR|/fB/-/-help/fR] | ||
.SH DESCRIPTION | ||
.SH OPTIONS | ||
.TP | ||
/fB/-/-is_bool/fR | ||
|
||
.TP | ||
/fB/-h/fR, /fB/-/-help/fR | ||
Print help information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems suspicious. #4432 showed working man pages. We should know what the difference is between the old issue and new issue and discuss it in this PRs issue for which route to go.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting. Yeah i'll look at that.