Nathan West

Results 57 issues of Nathan West

It would be nice if we could add const or static global items to codegen scopes. To ensure correctness, these could only be allowed for a small set of primitives,...

The use of the logging module is pretty harmless, because when left uninitialized, most of its operations are no-ops. This issue proposes to add various messages at the DEBUG, INFO,...

Sometimes, when a default behavior is for a boolean switch to be True, the user will type in this: @autocommand(__name__) def main(no_do_thing=False): pass Instead of this: @autocommand(__name__) def main(do_thing=True): pass...

Here's the basic idea: ``` @autocommand(__name__) class Cmd: def __init__(self, ...): ... @subcommand def subcommand1(...): ... @subcommand def subcommand2(...): ... ``` The global arguments will be extracted from the class's...

enhancement

[argcomplete](https://github.com/kislyuk/argcomplete) is a library that enables shell completion in argparse-enabled Python projects. As long as we're automatically creating and running an argparse parser, we may as well add support for...

enhancement

Add variadic options (for instance, `cmd -v` vs `cmd -vvv`). Syntax idea: ``` def main(verbose: int =False) ```

enhancement

- Try to use iterator adapters and collect in various places, where possible. This especially benefits `draw_it`. - Try to use `.map` and other similar methods on `Option`s and `Result`s,...

I wasn't able to find any way to do this; it'd be really great if you could have a list of stat blocks and generate a columnar print sheet for...