1
0
mirror of synced 2024-11-23 20:10:57 +01:00
TaikoSoundEditor/Commons/Utils/ProcessArgs.cs
2023-10-01 19:40:41 +03:00

14 lines
365 B
C#

using System.Collections.Generic;
using System.Linq;
namespace TaikoSoundEditor.Commons.Utils
{
public static class ProcessArgs
{
public static string GetString(params string[] args)
{
return string.Join(" ", args.Select(_ => _.Contains(" ") ? $"\"{_}\"" : _)); // does NOT support "something \" like this"
}
}
}