Skip to content

Commit

Permalink
tools removed Mandatory argument in pwsh scripts
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
silverqx committed Apr 4, 2023
1 parent 0bb1457 commit c9b4cde
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
9 changes: 4 additions & 5 deletions tools/Lint-TinyORM.ps1
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
#!/usr/bin/env pwsh

Param(
[Parameter(Position = 0, Mandatory = $false,
[Parameter(Position = 0,
HelpMessage = 'Specifies the cpp files to be processed, is joined with by the | ' +
'character and used in the parenthesized regex eg. (file1|file2).')]
[ValidateNotNullOrEmpty()]
[string[]] $Files,

[Parameter(Mandatory = $false,
[Parameter(
HelpMessage = 'Specifies the files paths to be processed, is joined with by the | ' +
'character and used in the parenthesized regex eg. (folder1|folder2).')]
[ValidateNotNullOrEmpty()]
[string[]] $FilesPaths,

[Parameter(Mandatory = $false,
HelpMessage = 'Specifies the path to the cmake build folder, is pwd by default.')]
[Parameter(HelpMessage = 'Specifies the path to the cmake build folder, is pwd by default.')]
[ValidateNotNullOrEmpty()]
[string] $BuildPath = $($(Get-Location).Path),

Expand All @@ -36,7 +35,7 @@ Param(
[ValidateNotNullOrEmpty()]
[string] $BuildType = 'Debug',

[Parameter(Mandatory = $false,
[Parameter(
HelpMessage = 'Specifies the checks filter, when not specified, use clang-tidy default ' +
'(eg. -*,readability-magic-numbers to run only a specific check).')]
[ValidateNotNullOrEmpty()]
Expand Down
6 changes: 3 additions & 3 deletions tools/qa-lint-tinyorm-qt5.ps1.example
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/usr/bin/env pwsh

Param(
[Parameter(Position = 0, Mandatory = $false,
[Parameter(Position = 0,
HelpMessage = 'Specifies the files to be processed, is joined with by the | character ' +
'and used in the parenthesized regex eg. (file1|file2).')]
[ValidateNotNullOrEmpty()]
[string[]] $Files,

[Parameter(Mandatory = $false,
[Parameter(
HelpMessage = 'Specifies the files paths to be processed, is joined with by the | ' +
'character and used in the parenthesized regex eg. (folder1|folder2).')]
[ValidateNotNullOrEmpty()]
Expand All @@ -27,7 +27,7 @@ Param(
[ValidateNotNullOrEmpty()]
[string] $BuildType = 'Debug',

[Parameter(Mandatory = $false,
[Parameter(
HelpMessage = 'Specifies the checks filter, when not specified, use clang-tidy default ' +
'(eg. -*,readability-magic-numbers to run only a specific check).')]
[ValidateNotNullOrEmpty()]
Expand Down
6 changes: 3 additions & 3 deletions tools/qa-lint-tinyorm-qt6.ps1.example
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/usr/bin/env pwsh

Param(
[Parameter(Position = 0, Mandatory = $false,
[Parameter(Position = 0,
HelpMessage = 'Specifies the files to be processed, is joined with by the | character ' +
'and used in the parenthesized regex eg. (file1|file2).')]
[ValidateNotNullOrEmpty()]
[string[]] $Files,

[Parameter(Mandatory = $false,
[Parameter(
HelpMessage = 'Specifies the files paths to be processed, is joined with by the | ' +
'character and used in the parenthesized regex eg. (folder1|folder2).')]
[ValidateNotNullOrEmpty()]
Expand All @@ -27,7 +27,7 @@ Param(
[ValidateNotNullOrEmpty()]
[string] $BuildType = 'Debug',

[Parameter(Mandatory = $false,
[Parameter(
HelpMessage = 'Specifies the checks filter, when not specified, use clang-tidy default ' +
'(eg. -*,readability-magic-numbers to run only a specific check).')]
[ValidateNotNullOrEmpty()]
Expand Down

0 comments on commit c9b4cde

Please sign in to comment.