This repository has been archived by the owner on Jan 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Consistent cli #14
Closed
Closed
Consistent cli #14
Changes from 2 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
82f2f89
add colorized help for a better user experience
gibix eb3ae83
remove unnecessary clap settings
gibix c350195
multiple entry points
gibix 5172489
drop cargo for cargo_metadata
gibix 5e7377b
add basic logging
gibix 1aefd30
Add cargo-features support
gibix b44f4f9
add correct license handling
gibix 70c60d8
run cargo update
gibix File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,16 +30,9 @@ struct Args { | |
} | ||
|
||
#[derive(StructOpt, Debug)] | ||
#[structopt(bin_name = "cargo")] | ||
#[structopt(name = "cargo", raw(setting = "AppSettings::ColoredHelp"))] | ||
enum Opt { | ||
#[structopt( | ||
name = "ebuild", | ||
raw( | ||
setting = "AppSettings::UnifiedHelpMessage", | ||
setting = "AppSettings::DeriveDisplayOrder", | ||
setting = "AppSettings::DontCollapseArgsInUsage" | ||
) | ||
)] | ||
#[structopt( name = "ebuild",)] | ||
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. Trailing comma |
||
/// Generates an ebuild for a given Cargo project | ||
Ebuild(Args), | ||
} | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Prior to this change (there is no color):
With this change (there is still no color):
So not only does this not add color but it breaks the help output. I would drop this patch.