ProgramArgsExtensions Class
Extensions of ProgramArgs
Namespace
Songhay.Extensions
Base Types
  • object
graph BT Type-->Base0["object"] Type["ProgramArgsExtensions"] class Type type-node

Syntax

public static class ProgramArgsExtensions

Methods

Name Return Value Summary
GetArgValue(ProgramArgs, string) string
Gets the argument value.
static
GetBasePathValue(ProgramArgs) string
Gets the conventional base-path value.
static
GetOutputPath(ProgramArgs) string
Gets the path to the output file specified by conventional arguments.
static
GetSettings(ProgramArgs) string
Gets the conventional settings file string content.
static
GetSettingsFilePath(ProgramArgs) string
Gets the conventional settings file path.
static
GetStringInput(ProgramArgs) string
Gets string input from either InputString or InputFile.
static
HasArg(ProgramArgs, string, bool) bool
Determines whether the specified ProgramArgs has argument.
static
IsHelpRequest(ProgramArgs) bool
Determines whether args contain the Help flag.
static
ToConfigurationKey(ProgramArgs, string) string
Converts the args key to a conventional Configuration key.
static
ToHelpDisplayText(ProgramArgs, int) string
Converts the args key any help text.
static
ToHelpDisplayText(ProgramArgs) string
Converts the args key any help text.
static
WithDefaultHelpText(ProgramArgs) ProgramArgs
Returns ProgramArgs
static
WriteOutputToFile(ProgramArgs, byte[]) void
Writes the byte array output to the file specified by OutputFile.
static
WriteOutputToFile(ProgramArgs, Stream) void
Writes the Stream output to the file specified by OutputFile.
static
WriteOutputToFile(ProgramArgs, string) void
Writes the string output to the file specified by OutputFile.
static