Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/QsFmt/App/CommandLineArguments.fs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type FormatArguments =
[<Option("qsharp-version", SetName = "INPUT_FILES", HelpText = "Option to provide a Q# version to the tool.")>]
QdkVersion: string
[<Option('i',
"inputs",
"input",
SetName = "INPUT_FILES",
Required = true,
Min = 1,
Expand Down Expand Up @@ -77,7 +77,7 @@ type UpdateArguments =
[<Option("qsharp-version", SetName = "INPUT_FILES", HelpText = "Option to provide a Q# version to the tool.")>]
QdkVersion: string
[<Option('i',
"inputs",
"input",
SetName = "INPUT_FILES",
Required = true,
Min = 1,
Expand Down Expand Up @@ -133,7 +133,7 @@ type Arguments =
RecurseFlag: bool
BackupFlag: bool
QSharp_Version: Version option
Inputs: string list
Input: string list
}

module Arguments =
Expand All @@ -158,7 +158,7 @@ module Arguments =

if List.isEmpty errors then

let inputs, version =
let input, version =
if isNull arguments.ProjectFile then
arguments.InputFiles |> Seq.toList, arguments.QdkVersion |> Option.ofObj
else
Expand All @@ -176,7 +176,7 @@ module Arguments =
RecurseFlag = arguments.Recurse
BackupFlag = arguments.Backup
QSharp_Version = qsharp_version
Inputs = inputs
Input = input
}
|> Result.Ok
else
Expand Down
2 changes: 1 addition & 1 deletion src/QsFmt/App/CommandLineArguments.fsi
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ module Microsoft.Quantum.QsFmt.App.Arguments
QSharp_Version: Version option

/// The paths to the files to process.
Inputs: string list
Input: string list
}

module internal Arguments =
Expand Down
4 changes: 2 additions & 2 deletions src/QsFmt/App/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ let run arguments inputs =

let runUpdate (arguments: UpdateArguments) =
match Arguments.fromUpdateArguments arguments with
| Ok args -> args.Inputs |> run args
| Ok args -> args.Input |> run args
| Error errorCode -> errorCode

let runFormat (arguments: FormatArguments) =
Expand All @@ -90,7 +90,7 @@ let runFormat (arguments: FormatArguments) =
}

match Arguments.fromUpdateArguments asUpdateArguments with
| Ok args -> args.Inputs |> run { args with CommandKind = Format }
| Ok args -> args.Input |> run { args with CommandKind = Format }
| Error errorCode -> errorCode

[<CompiledName "Main">]
Expand Down