neocities / neocities-ruby

The Neocities Gem - A CLI and library for using the Neocities web site API.
https://neocities.org
51 stars 14 forks source link

make help more specific and allow empty info #44

Closed P-skylos closed 4 months ago

P-skylos commented 12 months ago

made it so sub command specific help is given if the help subcommands succeed or precede a valid subcommand.

This means that it is possible for empty input to reach all methods, which is good since info is meant to show the logged in site if no argument is given. I had to add emptiness checks for the other functions and create a pizza function though.

The help check also overrides info's ability to get the stats of the sites: "help", "-h", and "--help" so I had to add an extra check to get around that.

kyledrake commented 4 months ago

This is awesome, thank you so much! My apologies for the delay in merging.