Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

function from_yaml not found in Arg<'_> #2565

Closed
2 tasks done
dwisiswant0 opened this issue Jun 29, 2021 · 0 comments
Closed
2 tasks done

function from_yaml not found in Arg<'_> #2565

dwisiswant0 opened this issue Jun 29, 2021 · 0 comments
Labels
C-bug Category: Updating dependencies

Comments

@dwisiswant0
Copy link

Please complete the following tasks

  • I have searched the discussions
  • I have searched the existing issues

Rust Version

1.53.0 (53cb7b09b 2021-06-17)

Clap Version

3.0.0-beta.2

Minimal reproducible code

use {
	clap::{
		App, Arg,
		load_yaml,
		crate_authors,
		crate_description,
		crate_name,
		crate_version
	},
};

#[async_std::main]
async fn main() {
	let yaml = load_yaml!("cli.yaml");
	let args = Arg::from_yaml(yaml);
	let matches = App::new(crate_name!())
		.author(crate_authors!())
		.about(crate_description!())
		.name(crate_name!())
		.version(crate_version!())
		.arg(args)
		.get_matches();
...

Steps to reproduce the bug with the above code

cargo run --

Actual Behaviour

Can't call from_yaml method.

Expected Behaviour

Should be able to use (according to documentation).

Additional Context

No response

Debug Output

No response

@dwisiswant0 dwisiswant0 added the C-bug Category: Updating dependencies label Jun 29, 2021
@clap-rs clap-rs locked and limited conversation to collaborators Jun 29, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
C-bug Category: Updating dependencies
Projects
None yet
Development

No branches or pull requests

2 participants