Donough Liu
00cf697d36
Small simplification on several functions
2021-02-05 10:07:46 +00:00
Donough Liu
5e020c636d
Remove had_eq
2021-02-05 10:07:46 +00:00
Donough Liu
751adaa687
Remove ContainsLast flag
2021-02-05 10:07:46 +00:00
Pavan Kumar Sunkara
f88956de5e
Merge pull request #2320 from ldm0/parser1
...
Parser logic clean up
2021-02-05 09:59:13 +00:00
Donough Liu
818f62bd5c
Unused clippy allow
2021-01-30 17:39:34 +00:00
Donough Liu
45753d552b
Resolve a TODO
2021-01-30 17:39:34 +00:00
Donough Liu
cf4881182a
Add comments for some internal app settings
2021-01-30 17:39:34 +00:00
Donough Liu
c8e669c690
Eliminate unreachable branch
...
comment fix
Apply fmt
2021-01-30 17:39:33 +00:00
Donough Liu
944fc759c9
Optimize branch, more comments
2021-01-30 17:24:11 +00:00
Donough Liu
5774eb2c52
Simplify possible subcommand
2021-01-30 17:24:11 +00:00
Donough Liu
9cf007378b
Branch simpification
2021-01-30 17:24:11 +00:00
Donough Liu
336f926ec9
Integrate workflow
2021-01-30 17:24:11 +00:00
Donough Liu
be314d9ac0
Flow optimize
2021-01-30 17:24:11 +00:00
Donough Liu
c39dcf2ecf
Remove redundant ClapResult in some functions
2021-01-30 17:24:11 +00:00
Donough Liu
1b63516e3b
Flow reordering
2021-01-30 17:24:11 +00:00
Donough Liu
47eee8ab2f
Acc a request
2021-01-30 17:24:11 +00:00
Donough Liu
c6bcfe819e
Clearer error processing
2021-01-30 17:24:11 +00:00
Donough Liu
8f4c26fc58
Minor redundant logic cleanup
...
Fix clippy
dot fix
2021-01-30 17:24:09 +00:00
Pavan Kumar Sunkara
8d5a021e1e
Merge pull request #2309 from ldm0/parser0
...
Dehack, Revert #1856
2021-01-30 14:52:02 +00:00
Pavan Kumar Sunkara
56ffb5e4ed
Merge pull request #2310 from ldm0/val_names
...
Fix usage of positional grouped arguments uses arg name rather than val_name
2021-01-26 18:16:47 +00:00
Pavan Kumar Sunkara
2a004c700f
Merge pull request #2312 from bestgopher/master
...
Update README.md
2021-01-26 18:14:56 +00:00
bestgopher
70f49d9fc5
Update README.md
...
fix INPUT
2021-01-26 15:59:29 +08:00
ldm0
5ee6e07858
Fix usage of positional grouped arguments uses arg name rather than val_name
2021-01-24 19:02:43 +00:00
Donough Liu
0df169bbdc
Fix incorrect error message.
...
Comment out regressed logic
Fix clippy
2021-01-23 14:51:40 +00:00
Donough Liu
90d786b8bc
Dehack, revert #1856
2021-01-23 14:51:40 +00:00
Donough Liu
9477a5ffdb
Correct tests, reveal real problem
2021-01-23 14:51:40 +00:00
Pavan Kumar Sunkara
d7f6748887
Merge pull request #2306 from ldm0/unset_setting
...
Fix unset_setting()
2021-01-23 13:37:57 +00:00
Bowen Ding
3907e11621
Make @group accept multiple attributes ( #2248 )
...
* Make @group accept multiple attributes.
* New syntax: remove parenthese and "=>".
* Fix example
* Make Clippy happy
* Make clippy happy again
2021-01-23 13:12:40 +00:00
ldm0
68a0ef930a
Fix copied code
2021-01-23 06:41:11 +00:00
Pavan Kumar Sunkara
c156571f14
Merge pull request #2302 from AriusX7/visible-aliases
...
Allow visible alias(es) for args from YAML files
2021-01-20 18:07:06 +00:00
Pavan Kumar Sunkara
1d9a3cb820
Merge pull request #2303 from ldm0/issue2279
...
Add regression test for issue 2279
2021-01-20 18:04:37 +00:00
Donough Liu
d5e3c6b0b9
Add regression test for issue 2279
2021-01-21 01:09:20 +08:00
AriusX7
448c102f4f
fix: allow visible alias(es) in yaml files
2021-01-20 02:17:17 +05:30
Pavan Kumar Sunkara
42a4087220
Merge pull request #2299 from ldm0/terminator
...
Pick up missing setting
2021-01-18 22:13:20 +00:00
Pavan Kumar Sunkara
e598992fe4
Merge pull request #2300 from ldm0/clippy
...
Fix clippy warnings
2021-01-18 19:36:28 +00:00
Donough Liu
09f43594b9
Fix doc test
2021-01-19 02:39:16 +08:00
Donough Liu
acdb94c1a5
Add assert to make doc test fails.
2021-01-19 02:37:07 +08:00
Donough Liu
6968f340c3
Fix clippy warnings
2021-01-19 02:24:58 +08:00
Pavan Kumar Sunkara
50fb4ca63d
Merge pull request #2286 from jder/non-structopt-usage
...
docs: add back example of using non-structopt arguments
2021-01-03 22:04:03 +00:00
Jesse Rusak
c85526bd4e
docs: add back example of using non-structopt arguments
2021-01-03 14:07:22 -05:00
Pavan Kumar Sunkara
eb047b6b1f
Merge pull request #2284 from ldm0/textwrap
...
Add unicode_help feature, Bump textwrap to 0.13.2
2021-01-02 06:11:14 +00:00
Donough Liu
c6da968ec7
Bump textwrap to 0.13.2
2021-01-02 13:15:50 +08:00
Pavan Kumar Sunkara
dc3306c097
Merge pull request #2281 from mgeisler/patch-2
...
docs: Mention correct default value in term_width docstring
2020-12-31 08:38:54 +00:00
Martin Geisler
72884b2642
docs: Mention correct default value in term_width docstring
...
The default was correctly changed to 100 in #1950 , but later
accidentally reverted in 89fcc75
.
2020-12-31 08:55:56 +01:00
Pavan Kumar Sunkara
e3bede211f
Merge pull request #2276 from Nukesor/unify_zsh_help_escaping
...
Fix zsh subcommand help escaping
2020-12-30 13:44:33 +00:00
Pavan Kumar Sunkara
a0269a41d4
Merge pull request #2268 from ldm0/fixme
...
Better mkeymap
2020-12-28 10:09:27 +00:00
Arne Beer
f290a9de72
Code formatting and completion script formatting
2020-12-28 01:41:57 +01:00
Arne Beer
915d60504c
zsh: Test subcommand help text escaping
2020-12-28 01:41:57 +01:00
Arne Beer
9001bf5d21
zsh: Fix subcommand help escaping
2020-12-28 01:41:57 +01:00
Arne Beer
84d99d6bb8
Give each shell test their own App
...
Right now, adjusting test cases to cover some special edge-cases for a
specific shell is a little problematic.
For instance, if you add a special character that needs escaping
to one of the help strings, not only the tests for the shell you're
currently working on need adjustments, but rather all shell tests!
Contributors can often only work on one specific shell. The
need to adjust shells they don't know anything about discourages
testing or makes it simply impossible for a single contributor.
Arguably, this commit introduces a lot of code duplication, but on
the other hand it also makes testing a lot easier.
2020-12-28 01:40:15 +01:00