Enhanced version of Help command#93
Conversation
368c7e1 to
bcd4d3b
Compare
Add strings.c with strcasecmp()
Move fs variable from main.c to src/mos.c Create new mos_mount() function in src/mos.c Call mos_mount() from main() instead of directly calling f_mount Add mos_cmdMOUNT() that calls mos_mount() in src/mos.c Add additional commands to list of commands in HELP text.
bcd4d3b to
2141f3b
Compare
|
There's a bug if you use it in BBC BASIC - get gibberish at end of error message if an unknown command is found. Think I know what it is - will fix. Will also add help text for the new SET CONSOLE command for Quark. |
|
cool cool. I have this merged into the Console8 codebase a little while ago, so it's been getting a bit of use... there's a bug that @lennart-benschop spotted there with I did try to have a look to understand why that bug was happening, but I couldn't work out why - the code looked fine to me. 🤷 Hopefully you'll have more luck @breakintoprogram 😁 |
Yes, it was returning -1 if it failed, an invalid error code. I've set this to 20 which is (in mos_errors) Invalid Command. It'll output the error automatically. I'll add some belts and braces into the error output code so that doesn't happen. |
Builds on @leighbb's very handy PR #60
My enhancements to it are to change how help is generated. This is mostly about splitting out arguments and aliases from the help text itself.
There's also one or two minor typos fixed in help text, and some minor modifications in some of the help text messaging.