Template:Command Option/testcases: Difference between revisions

From HPC Wiki
Jump to:navigation Jump to:search
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>{{Template testcases notice}}</noinclude>
<noinclude>{{Template testcases notice}}</noinclude>
{{Testcase|title=Single command in table
{{Testcase|title=Single option in table
|<nowiki>{{Command Option Table|1=
|<nowiki>{{Command Option Table|1=
  {{Command Option|--input|-i|string|input file to read|required=yes}}
  {{Command Option|--input|-i|string|input file to read|required=yes}}
Line 10: Line 10:
|{{Command Option Table/sandbox|1=
|{{Command Option Table/sandbox|1=
  {{Command Option/sandbox|--input|-i|string|input file to read|required=yes}}
  {{Command Option/sandbox|--input|-i|string|input file to read|required=yes}}
}}
}}
{{Testcase|title=Two options in table
|<nowiki>{{Command Option Table|1=
{{Command Option|--input|-i|string|input file to read|required=yes}}
{{Command Option|--output|-o|string|output file to write|required=no}}
}}
</nowiki>
|{{Command Option Table|1=
{{Command Option|--input|-i|string|input file to read|required=yes}}
{{Command Option|--output|-o|string|output file to write|required=no}}
}}
|{{Command Option Table/sandbox|1=
{{Command Option/sandbox|--input|-i|string|input file to read|required=yes}}
{{Command Option/sandbox|--output|-o|string|output file to write|required=no}}
  }}
  }}
}}
}}

Revision as of 12:14, 19 April 2017

Single option in table
Wiki code {{Command Option Table|1= {{Command Option|--input|-i|string|input file to read|required=yes}} }}

Main version
1Long form options are prefixed with --; 2Short form options are prefixed with -.
Long form1 Short form2 Option type Required? Description
Yes --input
Sandbox version Template:Command Option Table/sandbox
Two options in table
Wiki code {{Command Option Table|1= {{Command Option|--input|-i|string|input file to read|required=yes}} {{Command Option|--output|-o|string|output file to write|required=no}} }}

Main version
1Long form options are prefixed with --; 2Short form options are prefixed with -.
Long form1 Short form2 Option type Required? Description
Yes --input
No --output
Sandbox version Template:Command Option Table/sandbox