Skip to content
Snippets Groups Projects
Commit 6d7e4215 authored by Paul Nitzke's avatar Paul Nitzke
Browse files

Add Attributes to the CLI options

parent d81ad28e
No related branches found
No related tags found
1 merge request!19Various fixes and improvements to the CLI
...@@ -2,13 +2,16 @@ using System; ...@@ -2,13 +2,16 @@ using System;
using CommandLine; using CommandLine;
namespace CLIOptions; namespace CLIOptions;
/// <summary>
/// CLI options for the `convert` command.
/// </summary>
[Verb("convert", HelpText = "Convert MatrixMarket String to Dot String")] [Verb("convert", HelpText = "Convert MatrixMarket String to Dot String")]
public class ConvertOptions public class ConvertOptions
{ {
[Option("input")] [Option("input", Required = true, HelpText = "Path to the file containing the MatrixMarket string to read.")]
public String Input{ get; set; } public String Input{ get; set; }
[Option("output")] [Option("output", Required = true, HelpText = "Path to the file the output should be written to.")]
public String Output{ get; set; } public String Output{ get; set; }
} }
\ No newline at end of file
...@@ -5,15 +5,15 @@ namespace CLIOptions; ...@@ -5,15 +5,15 @@ namespace CLIOptions;
[Verb("Partition", HelpText = "Partitions MatrixMarket String")] [Verb("Partition", HelpText = "Partitions MatrixMarket String")]
public class PartitionOptions public class PartitionOptions
{ {
[Option("input")] [Option("input", Required = true, HelpText = "Path to the file containing the MatrixMarket string to read.")]
public String Input { get; set; } public String Input { get; set; }
[Option("output")] [Option("output", Required = true, HelpText = "Path to the file the output should be written to.")]
public String Output { get; set; } public String Output { get; set; }
[Option("format")] [Option("format", Required = true, HelpText = "Format to output as after partitioning. Can be 'dot', 'seed', or 'compressed'.")]
public String Format { get; set; } public String Format { get; set; }
[Option("textColor")] [Option("textColor", Default = false, HelpText = "Set to true to additionally output the color information as a text label. Default: false")]
public bool TextColor { get; set; } public bool TextColor { get; set; }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment