Update completion tests

This commit is contained in:
Paul Ouellette
2019-07-23 15:06:16 -04:00
parent 56e81ad786
commit a0c5ddf102
2 changed files with 18 additions and 25 deletions

View File

@@ -5,15 +5,16 @@ local argparse = require "argparse"
local parser = argparse()
:add_help_command()
:add_complete_command()
:add_complete()
parser:flag "-v --verbose"
:description "Set the verbosity level."
:count "*"
parser:option "-f --files"
:description "A description with illegal \\' characters."
:args "+"
parser:option "--direction"
:description "The direction to go in."
:choices {"north", "south", "east", "west"}
local install = parser:command "install i"
:description "Install a rock."
@@ -23,12 +24,8 @@ install:option "--deps-mode"
install:flag "--no-doc"
:description "Install without documentation."
install:option "--pair"
:description "A pair of files."
:args "2"
:count "*"
local admin = parser:command "admin"
:description "Rock server administration interface."
:add_help_command()
local admin_add = admin:command "add"