Git Product home page Git Product logo

clii's People

Contributors

jamesob avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

clii's Issues

default command.

I find my most common use case (previously with click) was to add cli options to a single-command script. Is it possible to make clii run a default command (or the only existing command)? That way you don't have to type "python main.py main --args" to run your main function.

ints with default 0 or 1 are parsed wrong.

I really like how small and simple this lib is, thanks for making it!

I've been playing with it for a little bit and I noticed that when I define an integer argument with a default of 1 or 0, it gets turned into a boolean flag.

I tracked it down to the check:
if self.type == bool or self.default in [True, False]:

Apparently 1 in [True, False] is True....

new version (0.2.2) does not import.

Using poetry to create a fresh virtualenv and installing clii, I am unable to import it. pip even lists it as installed.

$ mkdir test
$ cd test
$ poetry init
...
$ poetry add clii
$ poetry shell
$ pip list
Package    Version
---------- -------
clii       0.2.2  
pip        19.2.3 
setuptools 41.2.0 
$ python
>>> import clii
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'clii'

This works fine with 0.2.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.