-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renamed: appsettings.json appsettings.default.json
Change: default param are actual for works Added: cmdline parser with options
- Loading branch information
Showing
5 changed files
with
88 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using CommandLineParser.Arguments; | ||
|
||
namespace XpadControl | ||
{ | ||
internal class ProgramArguments | ||
{ | ||
internal const string DefaultConfigName = $"appsettings.default.json"; | ||
|
||
[ValueArgument(typeof(string), 'c', | ||
LongName = "config", | ||
Description = "Set the path to the settings file", | ||
DefaultValue = DefaultConfigName, | ||
ValueOptional = true)] | ||
public string ConfigPathName; | ||
|
||
[SwitchArgument('v', "version", | ||
defaultValue: false, | ||
Description = "Show app version")] | ||
public bool ShowVersion; | ||
|
||
[SwitchArgument('h', "help", defaultValue: false, | ||
Description = "Show this help")] | ||
public bool ShowHelp; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters