Florian Bruhin
|
62e55499eb
|
Privatize all attributes which aren't needed from the outside.
|
2014-09-24 22:25:11 +02:00 |
|
Florian Bruhin
|
e1d93fa3fa
|
Move inspect stuff from cmdutils to command.
|
2014-09-15 07:42:21 +02:00 |
|
Florian Bruhin
|
22e6a26ec3
|
Fix function calls with changed attribute names.
|
2014-09-15 06:20:33 +02:00 |
|
Florian Bruhin
|
f2e68685d2
|
Fix doc generation with overridden argument names.
|
2014-09-15 00:03:39 +02:00 |
|
Florian Bruhin
|
4d3b3616a6
|
Fix lint
|
2014-09-14 23:56:19 +02:00 |
|
Florian Bruhin
|
063be350e4
|
cmdutils: Merge _param_to_argparse_args and _param_to_argparse_kw.
|
2014-09-14 23:34:55 +02:00 |
|
Florian Bruhin
|
66f0aa8d5f
|
cmdutils: Bind keyword-only arguments as flags.
|
2014-09-14 23:25:40 +02:00 |
|
Florian Bruhin
|
b2058e2f0e
|
cmdutils: Default to nargs='+' for *args.
|
2014-09-14 22:56:02 +02:00 |
|
Florian Bruhin
|
4b759c5513
|
cmdutils: Make sure functions don't have **kwargs.
|
2014-09-14 22:48:00 +02:00 |
|
Florian Bruhin
|
cd8d137dd6
|
cmdutils: Bail out if instance is given but function takes no self.
|
2014-09-14 22:47:18 +02:00 |
|
Florian Bruhin
|
319ea242da
|
cmdutils: raise TypeError instead of ValueError.
|
2014-09-14 22:46:48 +02:00 |
|
Florian Bruhin
|
ef31157f5e
|
cmdutils: Use inspect.getdoc
|
2014-09-14 22:09:01 +02:00 |
|
Florian Bruhin
|
80ef0782d5
|
Improve some docstrings.
|
2014-09-13 00:22:27 +02:00 |
|
Florian Bruhin
|
fc70d700b2
|
cmdutils: Force metavar if choices are given.
|
2014-09-08 07:36:17 +02:00 |
|
Florian Bruhin
|
dcfb52847f
|
Nicer flag output in docs.
|
2014-09-08 07:36:17 +02:00 |
|
Florian Bruhin
|
6674eedfae
|
cmdutils: Add default value type to multitype_conv tuple.
|
2014-09-08 07:36:17 +02:00 |
|
Florian Bruhin
|
b453ae563e
|
Clean up docstring parsing and move it into qutebrowser for commands.
|
2014-09-08 07:36:17 +02:00 |
|
Florian Bruhin
|
a656c8cfb0
|
commands: Add initial --help argument support.
|
2014-09-08 07:36:17 +02:00 |
|
Florian Bruhin
|
32e24479b9
|
commands.cmdutils: Clean up decorator.
|
2014-09-08 07:36:17 +02:00 |
|
Florian Bruhin
|
57d51ad9bb
|
Lots of fixes for new command system.
Squashed commit:
- Fix getting current URL
- Get rid of *args for hints.
- Make enums work.
- Fix moving commands to utilcmds.
- Fix enums in argparse
- Fix arg splitting for hints.
- Fix default enum args.
- Fix argument splitting for hints if None is given.
- Fix set_cmd_text with flags and fix {url}.
- Fix unittests
- Fix tuple types for arguments.
- Fix scroll-page.
- Fix lint
- Fix open_target.
- Others
|
2014-09-08 07:36:17 +02:00 |
|
Florian Bruhin
|
d836e26107
|
Nicer debug printing of functions.
|
2014-09-08 07:36:17 +02:00 |
|
Florian Bruhin
|
a811f8cb07
|
Start initial newcmd stuff.
|
2014-09-08 07:36:17 +02:00 |
|
Florian Bruhin
|
ce4a5affa4
|
Rename commands.utils to commands.cmdutils.
|
2014-08-26 20:48:39 +02:00 |
|