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
this implies that the arg parser needs to either be more flexible or error out (as it does if the --keep-unsealed is moved to the beginning of the command line)
The text was updated successfully, but these errors were encountered:
upon review this appears to be in part due to --keep-unsealed requiring = when specifying false, this is a golang flag behavior that's easy to shoot yourself in the foot with (i.e. it turns into --keep-unsealed=true false)
we shoud likely more consistently panic on unexpected args like false to avoid this
Description
golang arg parsing is always a fun game and it's particularly fun with many submodules/subcommands
we recently noticed that our schedule commands were dropping the cron parameter:
would insert an empty cron value:
we discovered that this happened due to the addition of
--keep-unsealed false
, as the same command without that parameter inserts a correct scheduleluckily (?) this seems to be a simple parsing issue, as rearranging the parameters gives a correct schedule:
this implies that the arg parser needs to either be more flexible or error out (as it does if the --keep-unsealed is moved to the beginning of the command line)
The text was updated successfully, but these errors were encountered: