commandlineparser / commandlineparser/commandline

Make FormatWithQuotesIfString public

Open
#705 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
4.8k
Forks
478
PR merge metrics
No merged PRs in 30d

Description

Sometimes we may want to have more control when doing "UnParsing", for example I'd want to do the reverse of `UnParserExtensions.SplitArgs` (get a `string` from a `IEnumerable`).
By exposing `FormatWithQuotesIfString`, it would be much easier for me to implement a reverse version of `SplitArgs`.
https://github.com/commandlineparser/commandline/blob/d443a51aeb3a418425e970542b3b96e9da5f62e2/src/CommandLine/UnParserExtensions.cs#L230

(Of course, if it's possible to provide a `string UnParserExtensions.UnifyArgs(this IEnumerable args);`, it'd be even better!)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.