Antony Lee
Antony Lee
Although commenting out cppSTLfunction helps avoiding "too colorful" highlighting, there are still a lot of possibilities for extraneous highlights, e.g. the cppSTLtype "path". Would it be possible to add a...
``` def main(arg, argoption="foo"): pass import argh argh.dispatch_command(main) ``` ``` $ python foo.py -h usage: foo.py [-h] [--argoption ARGOPTION] arg positional arguments: arg - optional arguments: -h, --help show this...
Currently, help (from annotation) for `*args` is not displayed: ``` def main(arg: "help", *other_args: "more help"): pass if __name__ == "__main__": import argh argh.dispatch_command(main) ``` ``` $ python /tmp/foo.py -h...
Define `foo.py` as ``` #!/usr/bin/env python import argh @argh.dispatch_command def main(a_b, *c_d): pass ``` Then ``` $ ./foo.py -h usage: foo.py [-h] a-b [c_d [c_d ...]] positional arguments: a-b None...
Fixes both paths of #79.
Consider the following case: ``` import argh from functools import partial def _func1(data): ... def _func2(data): ... def dispatcher(func, data): func(data) func1 = partial(dispatcher, _func1); func1.__name__ = "func1" func2 =...
(Initially posted on the help-stow mailing list.) Like many others, I use stow to manage my dotfiles across multiple machines. In particular, a small exerpt of my stow tree includes...
Currently, something like ``` (foo @ bar) ``` incorrectly highlights `bar` as a decorator, when it is in fact an operand of a matrix multiplication (note that this code conforms...
vim's rst syntax (maintained upstream at https://github.com/marshallward/vim-restructuredtext) is able to highlight embedded code fragments with their respective syntax files (basically starting at https://github.com/marshallward/vim-restructuredtext/blob/master/syntax/rst.vim#L153). It would be nice if python-syntax likewise...
Currently `"%h"` (and l, L) are recognized as printf style formats (https://github.com/vim-python/python-syntax/blob/master/syntax/python.vim#L238). While they are technically legal, they are also useless in Python and likely very rarely used (https://docs.python.org/3.6/library/stdtypes.html#printf-style-string-formatting "A...