Closed gftea closed 1 year ago
@dtolnay I got error in 07 testcase because env
is None
. Anything I missed?
If the user calls env
n times, they need to get a vector of n environment variables. So for example they can call 2 times to get 2 elements in the vector (this is tested by assert_eq!(command.args, vec!["build", "--release"])
). Or they call 0 times to get 0 elements in the vector.
If the user calls
env
n times, they need to get a vector of n environment variables. So for example they can call 2 times to get 2 elements in the vector (this is tested byassert_eq!(command.args, vec!["build", "--release"])
). Or they call 0 times to get 0 elements in the vector.
thanks, I see your explanation
I interpret mandatory field is that user at least call 1 time, because env
is not a Option
field, so we should report error if no env is set by user
env
is mandatory field