forked from xxq250/Nasal-Interpreter
🐛 fix bug in json.cpp & add std/argparse.nas
This commit is contained in:
11
test/argparse_test.nas
Normal file
11
test/argparse_test.nas
Normal file
@@ -0,0 +1,11 @@
|
||||
# use module.libjson;
|
||||
|
||||
# libjson.stringify(math.tan);
|
||||
|
||||
# println(libjson.get_error());
|
||||
use std.argparse;
|
||||
|
||||
var args = argparse.new("test cli");
|
||||
args.add_command("--what", "-w", "what-what");
|
||||
args.add_subparser("what", "what-what");
|
||||
args.parse();
|
||||
Reference in New Issue
Block a user