From c9b4cded3e7255b56c4a34c5464cc1dc9e9e6aa4 Mon Sep 17 00:00:00 2001 From: silverqx Date: Tue, 4 Apr 2023 13:50:07 +0200 Subject: [PATCH] tools removed Mandatory argument in pwsh scripts [skip ci] --- tools/Lint-TinyORM.ps1 | 9 ++++----- tools/qa-lint-tinyorm-qt5.ps1.example | 6 +++--- tools/qa-lint-tinyorm-qt6.ps1.example | 6 +++--- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/tools/Lint-TinyORM.ps1 b/tools/Lint-TinyORM.ps1 index b0df3ddfb..e41a5500a 100644 --- a/tools/Lint-TinyORM.ps1 +++ b/tools/Lint-TinyORM.ps1 @@ -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), @@ -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()] diff --git a/tools/qa-lint-tinyorm-qt5.ps1.example b/tools/qa-lint-tinyorm-qt5.ps1.example index 66f272f6e..6bd2462b2 100644 --- a/tools/qa-lint-tinyorm-qt5.ps1.example +++ b/tools/qa-lint-tinyorm-qt5.ps1.example @@ -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()] @@ -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()] diff --git a/tools/qa-lint-tinyorm-qt6.ps1.example b/tools/qa-lint-tinyorm-qt6.ps1.example index 347d35f75..9e5daf81d 100644 --- a/tools/qa-lint-tinyorm-qt6.ps1.example +++ b/tools/qa-lint-tinyorm-qt6.ps1.example @@ -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()] @@ -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()]