Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Mar 01 2020 13:10
    pksunkara commented #1711
  • Mar 01 2020 13:09
    pickfire commented #1711
  • Mar 01 2020 13:07
    pickfire commented #1710
  • Mar 01 2020 12:14
    bors[bot] commented #1710
  • Mar 01 2020 12:14
    CreepySkeleton commented #1710
  • Mar 01 2020 12:09
    CreepySkeleton commented #1710
  • Mar 01 2020 12:09
    CreepySkeleton commented #1710
  • Mar 01 2020 12:08
    pksunkara review_requested #1710
  • Mar 01 2020 11:49
    pickfire commented #1710
  • Mar 01 2020 11:47
    pksunkara commented #1711
  • Mar 01 2020 11:44
    pickfire opened #1711
  • Mar 01 2020 11:44
    pickfire labeled #1711
  • Mar 01 2020 11:36
    pickfire synchronize #1710
  • Mar 01 2020 09:10
    pickfire commented #1710
  • Mar 01 2020 09:09
    pickfire opened #1710
  • Mar 01 2020 08:30
    pksunkara commented #1655
  • Mar 01 2020 08:29
    pickfire commented #1655
  • Feb 29 2020 16:49
    bors[bot] closed #1709
  • Feb 29 2020 16:49
    bors[bot] commented #1709
  • Feb 29 2020 16:07
    pksunkara commented #1709
amesgen
@amesgen
One clarification: I did not consider tokio's parking_lot feature to be "additive", as it modifies internal code, rather introducing new dependencies/functions, but that is probably bikeshedding.
Pavan Kumar Sunkara
@pksunkara
Hey guys, so our support for gitter community is always supposed to be temporary. Please use https://github.com/clap-rs/clap/discussions to ask a question from now onwards. I would encourage users to also answer some questions there. And I would encourage people to point others at that if they come asking a question here. We want our community to not be fragmented anymore.
Denis Lisov
@tanriol
@pksunkara Good luck to you :-) sorry, I don't feel like watching one more space, so I'll either continue answering here or just switch to other things.
Pavan Kumar Sunkara
@pksunkara
It is one of the reasons we got discussions enabled. Because we don't want to watch more workspaces than just github.
luopan
@loloxiaoz
how to ignore extra param in clap
i use clion IDE and want to use test case, when I run test case by IDE, clap tip that
image.png
what can I do to ignore the extra param --nocapture
Denis Lisov
@tanriol
@loloxiaoz Why do you parse command-line arguments for a test at all?
stedingan
@stedingan
hello, can somebody tell me what's wrong with the following example code? https://github.com/clap-rs/clap#using-builder-pattern
if i just copy paste that snipped and do a cargo run, i get thread 'main' panicked at 'Argument names must be unique, but '' is in use by more than one argument or group',
the less verbose method of using-builder-pattern is indeed working as expected
Pavan Kumar Sunkara
@pksunkara
@stedingan That looks like a bug. Can you please create an issue?
stedingan
@stedingan
@pksunkara Yah sure. :)
cheftomahsh
@cheftomahsh
is the v3 crate separate from the main clap crate a temporary thing until the main updates to v3 or will they always be separate?
Pavan Kumar Sunkara
@pksunkara
@cheftomahsh What do you mean?
There's no v3 crate. That's published by someone else
Jonas Berlin
@xkr47
Hi, I just wanted to say thank you for a great crate! I use it in all my tools, regardless if they need arguments or not :)
Luca Barbato
@lu-zero
@CreepySkeleton if you have time today I'd need your help tracking a strange glitch with the error reporting with my patch
the check tests/ui/subcommand_on_struct.rs still returns the expected error but it also complains about not having ArgMatches in the scope, even if that I can see it is always used as ::clap::ArgMatches in the derive code...
Luca Barbato
@lu-zero
found :P
Luca Barbato
@lu-zero
now there is one in tests/ui/external_subcommand_wrong_type.rs
Luca Barbato
@lu-zero
It works but now I'm afraid I have to come up with a different way to build the arg_matches.
Luca Barbato
@lu-zero
is there already a way to get the ArgMatches even if some compulsory values are missing?
K.I. (Dennis) Jung
@djKooks
Have some question about clap(sorry that I'm not a good rustacean yet)

I'm trying to get App::new from separate function, such as

let app = App::new(crate_name!()).version(crate_version!());
app.subcommand(put_cmd)
...
pub fn config_cmd() -> App{
    return App::new...
}

This returns missing lifetime specifier... does somebody knows the solution?

Denis Lisov
@tanriol
You can try something like App<'static, 'static>
Julian Didier
@theredfish

Hello there, I'm on the website and I wonder if some content cannot be load. Sections seem to be really empty, for example : https://clap.rs/?page_id=26 I only see :

clap can generate bash, fish, zsh and even PowerShell completion files at compile time!

Pavan Kumar Sunkara
@pksunkara
The website is not done
Luca Barbato
@lu-zero
@CreepySkeleton ping me when you have time :)
Luca Barbato
@lu-zero
@CreepySkeleton I take you are busy :)