Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Be more specific for -l CLI arguments #9149

Merged
merged 3 commits into from
Jul 17, 2018
Merged

Conversation

Tbaut
Copy link
Contributor

@Tbaut Tbaut commented Jul 17, 2018

No description provided.

@Tbaut Tbaut requested review from andresilva and 5chdn July 17, 2018 12:00
@parity-cla-bot
Copy link

It looks like @Tbaut signed our Contributor License Agreement. 👍

Many thanks,

Parity Technologies CLA Bot

@Tbaut Tbaut added F8-enhancement 🎊 An additional feature request. A2-insubstantial 👶 Pull request requires no code review (e.g., a sub-repository hash update). M3-docs 📑 Documentation. labels Jul 17, 2018
@Tbaut Tbaut added this to the 2.0 milestone Jul 17, 2018
@@ -800,7 +800,7 @@ usage! {

ARG arg_logging: (Option<String>) = None, or |c: &Config| c.misc.as_ref()?.logging.clone(),
"-l, --logging=[LOGGING]",
"Specify the logging level. Must conform to the same format as RUST_LOG.",
"Specify the general logging level (error, warn, info, debug or trace). It can also be set for a specific module. Example: '-l sync=debug, rpc=trace',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Missing " in the end, and extra space after general. ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed, that was obviously written too quickly :)

Copy link
Contributor

@andresilva andresilva left a comment

Choose a reason for hiding this comment

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

👍

@@ -800,7 +800,7 @@ usage! {

ARG arg_logging: (Option<String>) = None, or |c: &Config| c.misc.as_ref()?.logging.clone(),
"-l, --logging=[LOGGING]",
"Specify the logging level. Must conform to the same format as RUST_LOG.",
"Specify the general logging level (error, warn, info, debug or trace). It can also be set for a specific module. Example: '-l sync=debug, rpc=trace'",
Copy link
Contributor

Choose a reason for hiding this comment

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

, example: ?

@andresilva andresilva merged commit c6e97d4 into master Jul 17, 2018
Copy link
Contributor

@5chdn 5chdn left a comment

Choose a reason for hiding this comment

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

🙄 🤣

@@ -800,7 +800,7 @@ usage! {

ARG arg_logging: (Option<String>) = None, or |c: &Config| c.misc.as_ref()?.logging.clone(),
"-l, --logging=[LOGGING]",
"Specify the logging level. Must conform to the same format as RUST_LOG.",
"Specify the general logging level (error, warn, info, debug or trace). It can also be set for a specific module, example: '-l sync=debug, rpc=trace'",
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it really work with space between the options?

Copy link
Contributor

Choose a reason for hiding this comment

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

parity -l sync=debug, rpc=trace
error: Found argument 'rpc=trace' which wasn't expected, or isn't valid in this context

USAGE:
    parity [SUBCOMMAND]

For more information try --help

Copy link
Contributor

Choose a reason for hiding this comment

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

Damn I tested the example but didn't copy paste it so didn't catch the space.

@5chdn 5chdn deleted the Tbaut-patch-cli-log-1 branch July 17, 2018 17:44
@5chdn 5chdn added A5-grumble 🔥 Pull request has minor issues that must be addressed before merging. and removed F8-enhancement 🎊 An additional feature request. labels Jul 17, 2018
@5chdn
Copy link
Contributor

5chdn commented Jul 17, 2018

Stop adding F-Labels 🤣

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A2-insubstantial 👶 Pull request requires no code review (e.g., a sub-repository hash update). A5-grumble 🔥 Pull request has minor issues that must be addressed before merging. M3-docs 📑 Documentation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants