Kevin K
49c975a400
refactor: renames uses in tests
2018-07-02 15:06:46 -04:00
Kevin K
31c6852684
chore: updates the copyright notices
2018-07-02 13:41:56 -04:00
Kevin K
0be39eebfa
chore: initial merge of both repos
2018-07-02 11:22:27 -04:00
Kevin K
44fad54b2f
chore: moves structopt files into temp dir
2018-07-02 10:59:08 -04:00
Guillaume P
18192d8e50
Add a minimum rustc version policy ( #116 )
...
Fix #115
2018-06-07 15:04:37 +02:00
Guillaume P
de7fc7a08e
fmt
2018-06-05 18:16:17 +02:00
Guillaume Pinot
01d34fb8d2
update syn quote and proc_macro2 + fmt
2018-05-21 16:57:35 +02:00
windwardly
87daa0bc8e
fix Cargo authors list insertion code ( #111 )
2018-05-17 09:54:56 +01:00
Guillaume Pinot
869c2dcb9e
fix nightly
2018-04-28 21:07:50 +02:00
Guillaume Pinot
70fbd88ae7
Fix a bug when flattening an enum
...
Fix #103
2018-04-28 19:03:19 +02:00
Brandon W Maister
ccb04a30cc
Add StructOpt::from_iter_safe method ( #98 )
...
I would like to be able to test argument parsing, which requires an error
value, not a `process::exit()`.
2018-04-20 15:02:12 +02:00
Georg Brandl
a91411742c
Support flattening common options from a struct ( #92 )
...
Fix #21
2018-04-12 11:27:57 +02:00
Guillaume Pinot
94ea6452d2
Fail compilation when using default_value
or required
with bool
...
Fix #80
2018-03-30 23:35:30 +02:00
Guillaume Pinot
71e2c05ade
Fix compilation with #[deny(warnings)]
with the !
type
...
https://github.com/rust-lang/rust/pull/49039#issuecomment-376420816
2018-03-27 09:44:36 +02:00
Christopher Durham
72784f3bd4
Re-license to Apache-2.0/MIT ( #71 )
2018-02-25 11:22:24 +01:00
Guillaume Pinot
f5338997d1
Fix #76
2018-02-24 12:11:08 +01:00
Guillaume Pinot
c7447cd063
An empty line in a doc comment will result in a double linefeed
...
fix #69
2018-02-16 23:11:33 +01:00
Guillaume Pinot
78d4aa00a0
Use r#"str"#
when appropriate
2018-02-15 16:19:52 +01:00
Guillaume Pinot
12acd6121a
Fix #66
2018-02-12 23:46:15 +01:00
Guillaume Pinot
a488c92524
Fix #65
2018-02-11 22:28:25 +01:00
Guillaume Pinot
b80dffcc47
fix a bug around enum tuple and the about message in the global help
2018-02-11 22:24:41 +01:00
Guillaume Pinot
53d520264f
Rename from_any
to from_iter
2018-02-10 20:56:16 +01:00
Guillaume Pinot
3e7d843d82
Add test for the options
2018-02-04 19:27:45 +01:00
Guillaume Pinot
0d2c765e4c
Fix a bug arround required(true)
2018-02-04 19:07:29 +01:00
Guillaume Pinot
d74eee5e46
Change _raw
suffix by raw()
wrapping
2018-02-04 15:39:27 +01:00
Guillaume Pinot
be60de036b
structopt reexport structopt_derive
...
As using structopt without structopt_derive is quite meaningless, reexport
structopt_derive, symplifying the usage.
Inspired by the failure crate.
fix #45
2018-02-03 16:55:43 +01:00
Guillaume Pinot
7975343a03
Support 1-uple enum variant as subcommand
...
This is a breaking change as it modifies the StructOpt trait.
fix #38
2018-02-03 15:32:55 +01:00
Sergio Benitez
35423c96c4
Add 'parse(from_occurrences)' parser. Don't special case 'u64'. ( #48 )
2018-02-03 15:15:03 +01:00
Guillaume Pinot
5bf0d2ffb5
Don't call author, version and about if empty argument
...
fix #31
2017-11-25 23:36:05 +01:00
Guillaume Pinot
227d1fa73c
fix bug with optional subsubcommand and Enum
2017-11-14 15:18:13 +01:00
kennytm
13fc4fb66a
Implement custom string parser from either &str
or &OsStr
. ( #28 )
...
* Implement custom string parser from either &str or &OsStr.
Fix #2 .
Fix #3 .
* Addressed review comments.
2017-11-09 10:23:02 +01:00
Guillaume Pinot
96a726aeb7
Handle multiline doc comment as help message
...
fix #25
2017-11-01 22:13:20 +01:00
Guillaume Pinot
4880ccb025
Fix a privacy bug
...
Fix #24
2017-11-01 22:13:20 +01:00
Seebi
ebde32aa5b
Add raw attributes ( #26 )
...
* Add raw attributes
This makes it possible to call clap functions that don't take strings,
but any arbitrary value. Even functions that take more than one argument
can be called.
All attributes that are called `attribute_name_raw` are augmented to
`attribute_name(value)` without quoting `value`.
* Add tests for raw attributes and fix spelling
2017-11-01 08:41:58 +01:00
William Yao
810831cfe1
add support for unit-variant subcommands
2017-07-17 11:45:31 +02:00
William Yao
91fb4a40e4
allow for documentation to be placed on subcommands
2017-07-17 11:45:31 +02:00
William Yao
b295234d5d
add test suite for nested subcommands ( texitoi/structopt#1 )
2017-07-17 11:45:31 +02:00
William Yao
e00e263f23
add test for subcommand parsing ( texitoi/structopt#1 )
2017-07-17 11:45:31 +02:00
Pascal Hertleif
2075ee8328
Favor help argument over doc comments
...
This changes the behavior of `from_attr_or_env` (used for clap
application settings) to favor the last occurrence of the requested
attribute. This is what repeatedly calling the same methods to set field
properties does implicitly.
2017-06-16 12:31:37 +02:00
Guillaume Pinot
fdc18d07bb
add flag tests
2017-02-07 01:41:16 +01:00