mirror of
https://github.com/Syping/ragephoto-cli.git
synced 2025-11-09 21:25:18 +01:00
update spelling of string
This commit is contained in:
parent
33f0de23b5
commit
3a200c8318
1 changed files with 3 additions and 3 deletions
|
|
@ -57,7 +57,7 @@ internal static class Program {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void Set(FileInfo photoFile, String? format, String? jpegFile, String? json, String? title, FileInfo? outputFile) {
|
private static void Set(FileInfo photoFile, String? format, String? jpegFile, String? json, String? title, FileInfo? outputFile) {
|
||||||
if (string.IsNullOrEmpty(format) && string.IsNullOrEmpty(jpegFile) &&
|
if (String.IsNullOrEmpty(format) && String.IsNullOrEmpty(jpegFile) &&
|
||||||
json == null && title == null) {
|
json == null && title == null) {
|
||||||
Console.Error.WriteLine("No value has being set");
|
Console.Error.WriteLine("No value has being set");
|
||||||
Environment.Exit(1);
|
Environment.Exit(1);
|
||||||
|
|
@ -67,7 +67,7 @@ internal static class Program {
|
||||||
using Photo photo = new();
|
using Photo photo = new();
|
||||||
photo.LoadFile(photoFile.FullName);
|
photo.LoadFile(photoFile.FullName);
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(format)) {
|
if (!String.IsNullOrEmpty(format)) {
|
||||||
photo.Format = format.ToLowerInvariant() switch {
|
photo.Format = format.ToLowerInvariant() switch {
|
||||||
"gta5" => PhotoFormat.GTA5,
|
"gta5" => PhotoFormat.GTA5,
|
||||||
"rdr2" => PhotoFormat.RDR2,
|
"rdr2" => PhotoFormat.RDR2,
|
||||||
|
|
@ -81,7 +81,7 @@ internal static class Program {
|
||||||
if (title != null)
|
if (title != null)
|
||||||
photo.Title = title;
|
photo.Title = title;
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(jpegFile)) {
|
if (!String.IsNullOrEmpty(jpegFile)) {
|
||||||
using MemoryStream jpegStream = new();
|
using MemoryStream jpegStream = new();
|
||||||
using Stream input = jpegFile == "-" ? Console.OpenStandardInput() : File.OpenRead(jpegFile);
|
using Stream input = jpegFile == "-" ? Console.OpenStandardInput() : File.OpenRead(jpegFile);
|
||||||
input.CopyTo(jpegStream);
|
input.CopyTo(jpegStream);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue