Template:Command Option/testcases: Difference between revisions

From HPC Wiki
Jump to:navigation Jump to:search
No edit summary
No edit summary
Line 2: Line 2:
{{Testcase|title=Single option 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|long=input|short=i|type-string|input file to read|required=yes}}
  }}
  }}
</nowiki>
</nowiki>
|{{Command Option Table|1=
|{{Command Option Table|1=
  {{Command Option|--input|-i|string|input file to read|required=yes}}
  {{Command Option|long=input|short=i|type=string|input file to read|required=yes}}
  }}
  }}
|{{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|long=input|short=i|type-string|input file to read|required=yes}}
  }}
  }}
}}
}}
Line 15: Line 15:
{{Testcase|title=Two options in table
{{Testcase|title=Two options 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|long=input|short=i|type=string|input file to read|required=yes}}
  {{Command Option|--output|-o|string|output file to write|required=no}}
  {{Command Option|long=output|short=o|type=string|output file to write}}
  }}
  }}
</nowiki>
</nowiki>
|{{Command Option Table|1=
|{{Command Option Table|1=
  {{Command Option|--input|-i|string|input file to read|required=yes}}
  {{Command Option|long=input|short=i|type=string|input file to read|required=yes}}
  {{Command Option|--output|-o|string|output file to write|required=no}}
  {{Command Option|long=output|short=o|type=string|output file to write}}
  }}
  }}
|{{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|long=input|short=i|type=string|input file to read|required=yes}}
  {{Command Option/sandbox|--output|-o|string|output file to write|required=no}}
  {{Command Option/sandbox|long=output|short=o|type=string|output file to write}}
  }}
  }}
}}
}}

Revision as of 11:25, 19 April 2017

Single option in table
Wiki code {{Command Option Table|1= {{Command Option|long=input|short=i|type-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
input i string Yes input file to read
Sandbox version Template:Command Option Table/sandbox
Two options in table
Wiki code {{Command Option Table|1= {{Command Option|long=input|short=i|type=string|input file to read|required=yes}} {{Command Option|long=output|short=o|type=string|output file to write}} }}

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