scripts: move examples and tests in subdirs

This commit is contained in:
Philippe Teuwen 2020-09-23 00:16:01 +02:00
commit b166dc166a
7 changed files with 4 additions and 4 deletions

View file

@ -4,7 +4,7 @@ local getopt = require('getopt')
local ansicolors = require('ansicolors') local ansicolors = require('ansicolors')
copyright = '' copyright = ''
usage = 'script run data_example_parameters.lua -a 1 -blala -c -de' usage = 'script run example_parameters.lua -a 1 -blala -c -de'
author = 'Martin Holst Swende' author = 'Martin Holst Swende'
version = 'v1.0.2' version = 'v1.0.2'
desc = [[ desc = [[
@ -12,10 +12,10 @@ This is an example script to demonstrate handle parameters in scripts.
For more info, check the comments in the code For more info, check the comments in the code
]] ]]
example = [[ example = [[
1. script run data_example_parameters -a mytestparam_input -c 1. script run example_parameters -a mytestparam_input -c
]] ]]
usage = [[ usage = [[
script run data_example_parameters [-h] [-a <txt>] [-b <txt>] [-c] [-d] [-e] script run example_parameters [-h] [-a <txt>] [-b <txt>] [-c] [-d] [-e]
]] ]]
arguments = [[ arguments = [[
-h This help -h This help
@ -52,7 +52,7 @@ local function main(args)
5 parameters; two with values and three flags. The following 5 parameters; two with values and three flags. The following
should be valid: should be valid:
script run data_example_parameters.lua -a 1 -blala -c -de script run example_parameters.lua -a 1 -blala -c -de
Notice two things: Notice two things:
1. 'blala' works just like 'b lala', both set 'b' to 'lala' 1. 'blala' works just like 'b lala', both set 'b' to 'lala'