File tree 2 files changed +19
-8
lines changed
2 files changed +19
-8
lines changed Original file line number Diff line number Diff line change 1
- using Brainf_ckSharp . Enums ;
1
+ using Brainf_ckSharp . Enums ;
2
2
using CommandLine ;
3
3
4
4
namespace Brainf_ckSharp . Cli ;
@@ -56,14 +56,24 @@ public sealed class Options
56
56
public int MemorySize { get ; set ; }
57
57
58
58
/// <summary>
59
- /// Gets or sets the overflow mode to use for the memory buffer
59
+ /// Gets or sets the data type to use in the memory buffer
60
60
/// </summary>
61
61
[ Option (
62
- "overflow " ,
63
- Default = OverflowMode . ByteWithOverflow ,
64
- HelpText = "The overflow mode to use for the memory buffer [ByteWithOverflow|ByteWithNoOverflow|UshortWithOverflow|UshortWithNoOverflow ]" ,
62
+ "data-type " ,
63
+ Default = DataType . Byte ,
64
+ HelpText = "The data type to use for the memory buffer [Byte|UnsignedShort ]" ,
65
65
Required = false ) ]
66
- public OverflowMode OverflowMode { get ; set ; }
66
+ public DataType DataType { get ; set ; }
67
+
68
+ /// <summary>
69
+ /// Gets or sets the execution options to use to run the script
70
+ /// </summary>
71
+ [ Option (
72
+ "execution-options" ,
73
+ Default = ExecutionOptions . AllowOverflow ,
74
+ HelpText = "The execution options to use to run the script [None|AllowOverflow]" ,
75
+ Required = false ) ]
76
+ public ExecutionOptions ExecutionOptions { get ; set ; }
67
77
68
78
/// <summary>
69
79
/// Gets or sets the path for a file to dump the output buffer to
Original file line number Diff line number Diff line change 1
- using System ;
1
+ using System ;
2
2
using System . IO ;
3
3
using System . Threading ;
4
4
using Brainf_ckSharp . Cli ;
56
56
. WithSource ( source )
57
57
. WithStdin ( stdin )
58
58
. WithMemorySize ( options . MemorySize )
59
- . WithOverflowMode ( options . OverflowMode )
59
+ . WithDataType ( options . DataType )
60
+ . WithExecutionOptions ( options . ExecutionOptions )
60
61
. WithExecutionToken ( cts . Token )
61
62
. TryRun ( ) ;
62
63
You can’t perform that action at this time.
0 commit comments