Optional arguments are currently gobbling up valid subcommands. For example, when a user tries ab cd and cd is a command but ab has optional data, optional takes precedence and gobbles when it shouldn't. This issue was taken from these two old and quite ambiguous comments:
// TODO: optional is gobbling others, need to maybe peek and check
// TODO: rewrite data
Optional arguments are currently gobbling up valid subcommands. For example, when a user tries
ab cd
andcd
is a command butab
has optional data, optional takes precedence and gobbles when it shouldn't. This issue was taken from these two old and quite ambiguous comments: