-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
It might be on the roadmap, but it's a reflex to use sharpts --help at first trial for a console app, so kind of needed for many I guess (and --version, etc.).
Or at least a not implemented yet when expected script argument is not a file instead of an exception.
sharpts --help
Unhandled exception. System.IO.FileNotFoundException: Could not find file 'C:\temp\--help'.
File name: 'C:\temp\--help'
at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Int32 bufferSize)
at System.IO.File.ReadAllText(String path, Encoding encoding)
at Program.<<Main>$>g__RunFile|0_1(String path, DecoratorMode decoratorMode, Boolean emitDecoratorMetadata) in /_/Program.cs:line 211
at Program.<Main>$(String[] args) in /_/Program.cs:line 172
Thanks!
Metadata
Metadata
Assignees
Labels
No labels