diff --git a/CHANGELOG.md b/CHANGELOG.md index 8743ac4..40aaeac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- Builtin documentation for builtin functions display from repl and command line +- Builtin documentation for builtin functions display from repl and command line. - Suggestions which command line parameters user may wanted to use ### Changed diff --git a/musique/main.cc b/musique/main.cc index 81b222a..ad28015 100644 --- a/musique/main.cc +++ b/musique/main.cc @@ -39,23 +39,26 @@ static unsigned repl_line_number = 1; [[noreturn]] void usage() { std::cerr << - "usage: musique [filename]\n" - " where filename is path to file with Musique code that will be executed\n" - " where options are:\n" - " -c,--run CODE\n" - " executes given code\n" - " -I,--interactive,--repl\n" - " enables interactive mode even when another code was passed\n" + "usage: musique [subcommand]...\n" + " where available subcommands are:\n" + " run FILENAME\n" + " executes given file\n" "\n" - " -f,--as-function FILENAME\n" - " deffer file execution and turn it into a file\n" + " fun FILENAME\n" + " load file as function\n" "\n" - " --ast\n" - " prints ast for given code\n" + " repl\n" + " enter interactive enviroment\n" "\n" - " -v,--version\n" + " version\n" " prints Musique interpreter version\n" "\n" + " doc BUILTIN\n" + " print documentation for given builtin function\n" + "\n" + " help\n" + " prints this message\n" + "\n" "Thanks to:\n" " Sy Brand, https://sybrand.ink/, creator of tl::expected https://github.com/TartanLlama/expected\n" " Justine Tunney, https://justinetunney.com, creator of bestline readline library https://github.com/jart/bestline\n"