CreepySkeleton
f0044d205d
Remove a redundant lifetime
2020-08-05 22:33:51 +03:00
CreepySkeleton
e6cc49ecde
Adjust derive
2020-08-05 17:07:13 +03:00
João Marcos
24760bc261
style: replacing yml with yaml for consistency
2020-07-20 20:58:34 -03:00
Marti Raudsepp
594c535ba2
Fix various typos in docs & code
...
Most errors detected and fixed with Topy (https://github.com/intgr/topy ),
all verified by hand.
2020-07-19 03:10:28 +03:00
bors[bot]
e8d46f4036
Merge #1989
...
1989: Replace macros with proper functions r=pksunkara a=CreepySkeleton
Co-authored-by: CreepySkeleton <creepy-skeleton@yandex.ru>
2020-07-06 18:51:07 +00:00
CreepySkeleton
51d0b31105
Fix test
2020-07-06 17:26:53 +03:00
Aaron Hill
c837b28552
fix(clap_derive): Unwrap syn::TypeGroup
when checking field types
...
Due to macro expansions, a `syn` type may be wrapped in multiple
'layers' of `syn::Type::Group`. However, `clap_derive` currently does
not check for `syn::Type::Group`, which will cause an `Option` (along
with other matched types) to fail to be detected when it results from a
macro expansion.
This commit 'unwraps' outer type groups before checking the
user-provided types against well-known types. Currently, these groups
may not be present due to a rustc bug (rust-lang/rust#43081 )
However, once https://github.com/rust-lang/rust/pull/73084 is merged,
these groups will be present in more cases. This commit makes `clap`
compatible with both older and newer versions of rustc.
2020-06-29 11:25:55 -04:00
CreepySkeleton
f904bebd9a
Ditch find_subcnd*! and match_alias!
2020-06-27 04:30:02 +03:00
bors[bot]
ca27d50ab2
Merge #1975
...
1975: fix: Use character instead of string for Arg::Short r=CreepySkeleton a=lanesawyer
Co-authored-by: Lane Sawyer <github@lanesawyer.dev>
2020-06-27 01:14:20 +00:00
Luca Barbato
081f3e865c
Fix the external command subtype check
2020-06-25 13:52:14 +02:00
Lane Sawyer
392effe319
fix: Use character instead of string for Arg::Short
...
This PR switches the Arg::Short macro to take a character instead of a string. It removes the hacky code in the Method to_token method and implements the logic for Short when parsing the clap derive arguments.
Fixes #1815 .
2020-06-17 09:45:05 -07:00
Pavan Kumar Sunkara
8bd1f1a9d3
Started on automatic upgrader
2020-06-10 09:48:37 +02:00
Andreas Steding
f3a9975085
fix: cargo fmt + clippy
2020-06-08 18:40:11 +02:00
Paolo Barbolini
d771d6debd
chore(Cargo.toml): bump proc-macro-error to 1
2020-05-29 00:13:17 +02:00
Pavan Kumar Sunkara
fe52d77f4e
Allow separate derives, but do not give examples
2020-05-15 09:51:42 +02:00
Pavan Kumar Sunkara
7bc282dd4e
Rename with_name to new for Arg & ArgGroup
2020-05-14 22:50:56 +02:00
Pavan Kumar Sunkara
b562ce4d63
Some modifications to allow cargo verification to work
2020-05-03 11:48:01 +02:00
bors[bot]
99e862945e
Merge #1883
...
1883: External subcommand r=pksunkara a=CreepySkeleton
Co-authored-by: CreepySkeleton <creepy-skeleton@yandex.ru>
2020-05-01 17:59:32 +00:00
CreepySkeleton
a21372e9ed
Fix ui tests
2020-05-01 20:09:55 +03:00
CreepySkeleton
6bdb6d9b2e
Marry AllowExternalSubcommands with SubcommandRequiredElse*
2020-05-01 15:33:36 +03:00
CreepySkeleton
ec6b6e1e36
Make validator take &str instead of String
2020-05-01 14:21:11 +03:00
CreepySkeleton
ee463ba834
Make extrernal_subcommand
ALMOST work
2020-04-30 20:20:21 +03:00
CreepySkeleton
3b418fe1a1
Cleaning
2020-04-30 15:11:39 +03:00
Pavan Kumar Sunkara
68ce9dd6ec
Rename trybuild file to ui
2020-04-28 11:39:30 +02:00
Pavan Kumar Sunkara
7616a5fa2e
Implemented arg_enum for option and vec
2020-04-28 11:35:47 +02:00
creativcoder
d0abb378b0
cargo fmt
2020-04-27 20:41:41 +05:30
creativcoder
9c8c06dd8c
Fix test for about method resolution in clap_derive
2020-04-27 02:42:07 +05:30
creativcoder
92d5920748
Updated test and usage of older help APIs with about
2020-04-27 02:42:07 +05:30
CreepySkeleton
2e959d6c71
Update tests
2020-04-24 11:15:55 +03:00
Pavan Kumar Sunkara
ea637b22eb
Apply suggestions from code review
...
Co-Authored-By: CreepySkeleton <creepy-skeleton@yandex.ru>
2020-04-22 18:28:56 +02:00
Pavan Kumar Sunkara
dbe6ac01f6
Clean up arg_enum
2020-04-22 14:38:16 +02:00
Pavan Kumar Sunkara
c4c6c35da7
Added alias support for arg_enum
2020-04-22 14:38:09 +02:00
Pavan Kumar Sunkara
01c179f527
Added arg_enum support
2020-04-22 14:37:45 +02:00
Pavan Kumar Sunkara
c1ab22c3c9
Remove unneeded paths
2020-04-22 09:33:39 +02:00
Pavan Kumar Sunkara
070bd50b28
Finished color refactor
2020-04-16 12:51:26 +02:00
Pavan Kumar Sunkara
b45746feff
Remove some defaults from profiles
2020-04-10 17:19:26 +02:00
Pavan Kumar Sunkara
cceb29623a
Remove nightly feature
2020-04-10 10:42:25 +02:00
Pavan Kumar Sunkara
f0a216036b
Fix some issues
2020-04-09 19:41:33 +02:00
CreepySkeleton
b61a807728
Fix clippy and bump MSRV
2020-03-13 22:41:40 +03:00
CreepySkeleton
1cff11109e
Fix CI
2020-03-13 20:51:41 +03:00
CreepySkeleton
5d9ef1527f
Fix warnings in tests & examples
2020-03-05 13:40:25 +03:00
CreepySkeleton
bfc850e99a
Suppress warnings in generated code
2020-03-05 11:35:21 +03:00
CreepySkeleton
d466a56aa1
Fix benches
2020-03-04 21:31:18 +03:00
Pavan Kumar Sunkara
d8d29aea13
Remove every proc_macro_derive except Clap
2020-03-02 16:28:35 +01:00
Pavan Kumar Sunkara
0c22a9df6c
Added support for unit-struct
2020-03-02 11:46:40 +01:00
CreepySkeleton
3f314ce39e
Use full span information whenever possible
2020-02-13 21:47:42 +03:00
CreepySkeleton
9a15e47af0
Fix dummy implementations
2020-02-13 21:46:33 +03:00
bors[bot]
a2dfbec2bc
Merge #1689
...
1689: Remove some mentioning of structopt r=TeXitoi a=CreepySkeleton
A work on #1671 . Attention! It doesn't close it just yet
Co-authored-by: CreepySkeleton <creepy-skeleton@yandex.ru>
2020-02-13 17:37:28 +00:00
CreepySkeleton
28ef1e91d4
Remove some mentioning of structopt
2020-02-13 18:29:51 +03:00
CreepySkeleton
43acfa00f4
Implement derive traits for Box<T>
2020-02-13 18:21:01 +03:00