You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run assigner get --branch main hw1, but I'm getting the following error:
usage: assigner get [-h] [--branch BRANCH [BRANCH ...]] [-f] [--section [SECTION]] [--student id] [--attempts ATTEMPTS] name [path]
assigner get: error: the following arguments are required: name
I suspect this is a result of --branch taking multiple arguments, and being greedy in consuming those arguments, causing it to interpret my command as (assigner) (get) (--branch main hw1) (*missing positional parameter*). I suggest making --branch take a single argument, and allow it to be specified multiple times instead. This would alleviate the ambiguity in parsing positional arguments.
The text was updated successfully, but these errors were encountered:
I'm assuming this is true of any argparse with multiple, like commit -acommit -r as well. We can at least note that one should include the assignment name before these, which does work well enough.
I'm trying to run
assigner get --branch main hw1
, but I'm getting the following error:I suspect this is a result of
--branch
taking multiple arguments, and being greedy in consuming those arguments, causing it to interpret my command as(assigner) (get) (--branch main hw1) (*missing positional parameter*)
. I suggest making--branch
take a single argument, and allow it to be specified multiple times instead. This would alleviate the ambiguity in parsing positional arguments.The text was updated successfully, but these errors were encountered: