HEPonHPC / apprentice

Other
9 stars 8 forks source link

app-build default options #7

Open iamholger opened 3 years ago

iamholger commented 3 years ago

Describe the bug app-build does not have a default for the orders. Since it is a requirement, there should be a meaningful error message right at the start rather than To Reproduce Steps to reproduce the behavior:

  1. app-build scan
  2. leads to:
    
    [0] will proceed to calculate approximations for 418 objects
    Traceback (most recent call last):
    File "/home/gcgt96/.local/bin/app-build", line 80, in <module>
    M, N = [int(x) for x in opts.ORDER.split(",")]
    AttributeError: 'NoneType' object has no attribute 'split'


**Expected behavior**
I would want an error message with a graceful shutdown telling the user, "you forgot to tell me the polynomial orders"