[go: up one dir, main page]

executables should show help if run with no arguments

If you run ch-run-oci without arguments you get a python traceback instead of a help message:

ana@green:~> ch-run-oci 
Traceback (most recent call last):
  File "/usr/bin/ch-run-oci", line 365, in <module>
    main()
  File "/usr/bin/ch-run-oci", line 33, in main
    args = args_parse()
  File "/usr/bin/ch-run-oci", line 82, in args_parse
    bundle_ = bundle_from_cid(args_.cid)
AttributeError: 'Namespace' object has no attribute 'cid'

By the way, the command wrapped ch-run also shows an error when it's run without arguments:

ana@green:~> ch-run
ch-run[19635]: NEWROOT and/or CMD not specified (ch-run.c:139)

It would be nice to get a short help message.

In case it's not evident, this is with version 0.10