#Invalid Form Body. Subcommand + group schenanigans

1 messages · Page 1 of 1 (latest)

spare hornet
#

If someone would mind looking at this command i'd appreciate it :D

#

any suggestions on changes to how this command is structured is welcome as well

drifting ice
#

error is plain english, do not mix sub commands and groups with other option types

spare hornet
#

So subcommands can’t have their own options?

spare hornet
summer harbor
#

Nothing to do with options.

But yourr nesting of groups/sub commands

#

There are 3 valid setups;

</NAME SUBCOMMAND_NAME:ID>
</NAME SUBCOMMAND_GROUP SUBCOMMAND_NAME:ID>
</NAME:COMMAND_ID>
spare hornet
#

a subcommand group with 3 nested subcommands?

#

oh shit just realised the message with code isnt showing??! 1 sec

summer harbor
#

No you have the command at same level as subs

spare hornet
summer harbor
#

As you have a group at second level, you cannot also have options at that level

#

If you use Sub/Commands

#

Then the top level cannot immedietly use options

spare hornet
#

Ok thanks i think I understand.. since i want that option to be available no matter what subcommand is used is there a better way than just pasting it under every subcommand?

summer harbor
#

No, that's how they work