AppSettings::DeriveDisplayOrder not ordering options by defined order. #949
Labels
A-docs
Area: documentation, including docs.rs, readme, examples, etc...
C-enhancement
Category: Raise on the bar on expectations
Milestone
Rust Version
rustc 1.19.0-nightly (f4209651e 2017-05-05)
Affected Version of clap
clap 2.24.1
Expected Behavior Summary
Options and flag appear in same order as they are defined.
Actual Behavior Summary
Some options are moved into a seemingly more alphabetical order instead.
Good example the '-d' option is moved before the '-n' option even though they are define in opposite order. Another is '--ini' moves up several places instead of just before the '--r*' ones where it should be so it seems to be effecting both long and short options.
Steps to Reproduce the issue
Download
Run cargo run --bin test -- -h where 'test' is the downloaded code.
Notice things are not in the defined order.
Example output
The text was updated successfully, but these errors were encountered: