Giter VIP home page Giter VIP logo

dodo's Issues

Current version (0.99) doesn't match installed version

The latest version (0.99) in the repo is not the same version that is installed as through the instructions (pip install dodopie) -- it actually installs 0.98.

This isn't really a problem (if you already have a DODO file), except that from 0.98 to 0.99, the choice parameter was added in the ArgumentParser.

0.98

312:      parser.add_argument("operation", type=str,
313:                        help="List all existing dodos add, propose, accept, reject, workon, finish, remove")

0.99

324:      parser.add_argument("operation", nargs='?', default=default_operation,
325:                          choices=[
326:                              'accept',
327:                              'add',
328:                              'finish',
329:                              'flush',
330:                              'list',
331:                              'propose',
332:                              'reject',
333:                              'remove',
334:                              'workon'
335:                          ],
336:                          help="The operation to perform")

when version 0.99 is run 'dodo init', you get the following error:

usage: dodo.py [-h] [-d DESC] [-u USER] [-t TIME] [--id ID] [-f FILE]
               [-i INPUT] [-o OUTPUT]
               [{accept,add,finish,flush,list,propose,reject,remove,workon}]
               [quick_access]
dodo.py: error: argument operation: invalid choice: 'init' (choose from 'accept', 'add', 'finish', 'flush', 'list', 'propose', 'reject', 'remove', 'workon')

You do NOT fall through to the code below, but the ArgumentParser() throws an exception (as above) with a message on line 348.

It's easily fixed by adding 'init' to the choices for "operation".

Took me a minute to figure out what was going.

I looked but didn't see where this change was introduced, but stumbled on it when I wanted to play with the script from the repo (just copied it from the master branch).

Anyway, just wanted to let you know.

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.