mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-04-18 03:00:27 -04:00
Update help infos
This commit is contained in:
@@ -41,5 +41,5 @@ fn show_help() {
|
||||
println!("Convert ValueScript assembly to bytecode");
|
||||
println!();
|
||||
println!("USAGE:");
|
||||
println!(" vstc assemble <file>");
|
||||
println!(" vstc assemble <file>");
|
||||
}
|
||||
|
||||
@@ -42,5 +42,5 @@ fn show_help() {
|
||||
println!("Compile ValueScript");
|
||||
println!();
|
||||
println!("USAGE:");
|
||||
println!(" vstc compile <entry point>");
|
||||
println!(" vstc compile <entry point>");
|
||||
}
|
||||
|
||||
@@ -56,10 +56,13 @@ pub fn db_command(args: &[String]) {
|
||||
}
|
||||
|
||||
fn show_help() {
|
||||
println!("vstc db [DB_PATH] [COMMAND] [ARGS]");
|
||||
println!("vstc db");
|
||||
println!();
|
||||
println!("ValueScript database functionality");
|
||||
println!();
|
||||
println!("USAGE:");
|
||||
println!(" vstc db [DB_PATH] [COMMAND] [ARGS]");
|
||||
println!();
|
||||
println!("Commands:");
|
||||
println!(" help, -h, --help Show this message");
|
||||
println!(" new [CLASS_FILE] [ARGS] Create a new database");
|
||||
|
||||
@@ -36,31 +36,34 @@ fn show_help() {
|
||||
println!("ValueScript toolchain 0.1.0");
|
||||
println!();
|
||||
println!("USAGE:");
|
||||
println!(" vstc [OPTIONS] [SUBCOMMAND]");
|
||||
println!(" vstc [OPTIONS] [SUBCOMMAND]");
|
||||
println!();
|
||||
println!("OPTIONS:");
|
||||
println!(" -h, --help");
|
||||
println!(" Print help information");
|
||||
println!(" -h, --help");
|
||||
println!(" Print help information");
|
||||
println!();
|
||||
println!(" -V, --version");
|
||||
println!(" Print version information");
|
||||
println!(" -V, --version");
|
||||
println!(" Print version information");
|
||||
println!();
|
||||
println!("SUBCOMMANDS:");
|
||||
println!(" compile");
|
||||
println!(" Compile an entry point");
|
||||
println!(" run");
|
||||
println!(" Run a program");
|
||||
println!();
|
||||
println!(" assemble");
|
||||
println!(" Convert assembly to bytecode");
|
||||
println!(" db");
|
||||
println!(" Database subcommands");
|
||||
println!();
|
||||
println!(" disassemble");
|
||||
println!(" Convert bytecode to assembly");
|
||||
println!(" compile");
|
||||
println!(" Compile an entry point");
|
||||
println!();
|
||||
println!(" run");
|
||||
println!(" Run a program");
|
||||
println!(" assemble");
|
||||
println!(" Convert assembly to bytecode");
|
||||
println!();
|
||||
println!(" repl");
|
||||
println!(" Read Eval Print Loop");
|
||||
println!(" disassemble (TODO)");
|
||||
println!(" Convert bytecode to assembly");
|
||||
println!();
|
||||
println!(" host");
|
||||
println!(" Start database server");
|
||||
println!(" repl (TODO)");
|
||||
println!(" Read Eval Print Loop");
|
||||
println!();
|
||||
println!(" host (TODO)");
|
||||
println!(" Start database server");
|
||||
}
|
||||
|
||||
@@ -73,18 +73,18 @@ fn show_help() {
|
||||
println!("Run a ValueScript program");
|
||||
println!();
|
||||
println!("USAGE:");
|
||||
println!(" vstc run [OPTIONS] <file>");
|
||||
println!(" vstc run [OPTIONS] <file>");
|
||||
println!();
|
||||
println!("OPTIONS:");
|
||||
println!(" --assembly");
|
||||
println!(" Interpret <file> as assembly");
|
||||
println!(" --assembly");
|
||||
println!(" Interpret <file> as assembly");
|
||||
println!();
|
||||
println!(" --bytecode");
|
||||
println!(" Interpret <file> as bytecode");
|
||||
println!(" --bytecode");
|
||||
println!(" Interpret <file> as bytecode");
|
||||
println!();
|
||||
println!(" --typescript");
|
||||
println!(" Interpret <file> as typescript");
|
||||
println!(" --typescript");
|
||||
println!(" Interpret <file> as typescript");
|
||||
println!();
|
||||
println!("NOTE:");
|
||||
println!(" <file> will be interpreted based on file extension if not otherwise specified");
|
||||
println!(" <file> will be interpreted based on file extension if not otherwise specified");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user