g2p / bedup

Btrfs deduplication
http://pypi.python.org/pypi/bedup
GNU General Public License v2.0
322 stars 50 forks source link

no default action #12

Closed shish closed 11 years ago

shish commented 11 years ago

Running "bedup" with no subcommand, I'd expect it to either do something simple and harmless (print out current status, for example), or print out a help screen telling me what I should have done instead. Currently, I get this:

Traceback (most recent call last):
  File "/root/.bedup-env/bin/bedup", line 9, in <module>
    load_entry_point('bedup==0.0.8', 'console_scripts', 'bedup')()
  File "/root/.bedup-env/lib/python3.3/site-packages/bedup/__main__.py", line 437, in script_main
    sys.exit(main(sys.argv))
  File "/root/.bedup-env/lib/python3.3/site-packages/bedup/__main__.py", line 426, in main
    return args.action(args)
AttributeError: 'Namespace' object has no attribute 'action'
g2p commented 11 years ago

It's an argparse bug I need to work around on Python 3.3. Thanks for the reminder.