Skip to content

Commit d3b9916

Browse files
committed
quiet command line option
1 parent 984d0d5 commit d3b9916

File tree

2 files changed

+20
-11
lines changed

2 files changed

+20
-11
lines changed

Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.8.8.0")]
36-
[assembly: AssemblyFileVersion("1.8.8.0")]
35+
[assembly: AssemblyVersion("1.8.9.0")]
36+
[assembly: AssemblyFileVersion("1.8.9.0")]

program.cs

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ static void Main(string[] args)
7373
var startupPRG = null as string;
7474
var encodingSpecified = false;
7575
var traceOption = false;
76+
var quietOption = false;
7677
CBM_Console.CBMEncoding encoding = CBM_Console.CBMEncoding.ascii;
7778

7879
try
@@ -156,6 +157,11 @@ static void Main(string[] args)
156157
traceOption = true;
157158
continue;
158159
}
160+
if (string.Compare(args[i], "quiet", ignoreCase: true) == 0)
161+
{
162+
quietOption = true;
163+
continue;
164+
}
159165
if (File.Exists(args[i]) || File.Exists(args[i] + ".PRG"))
160166
{
161167
startupPRG = args[i];
@@ -259,15 +265,18 @@ static void Main(string[] args)
259265
if (cbm != null && traceOption)
260266
cbm.trace = true;
261267

262-
Console.Error.WriteLine("6502 Emulator for Windows Console");
263-
Console.Error.WriteLine("C64, VIC-20, PET, TED, C128, ...");
264-
Console.Error.WriteLine("");
265-
Console.Error.WriteLine("simple-emu-c64 version 1.8.8");
266-
Console.Error.WriteLine("Copyright (c) 2022 David R. Van Wagner");
267-
Console.Error.WriteLine("davevw.com");
268-
Console.Error.WriteLine("Open Source, MIT License");
269-
Console.Error.WriteLine("github.com/davervw/simple-emu-c64");
270-
Console.Error.WriteLine("");
268+
if (!quietOption)
269+
{
270+
Console.Error.WriteLine("6502 Emulator for Windows Console");
271+
Console.Error.WriteLine("C64, VIC-20, PET, TED, C128, ...");
272+
Console.Error.WriteLine("");
273+
Console.Error.WriteLine("simple-emu-c64 version 1.8.9");
274+
Console.Error.WriteLine("Copyright (c) 2022 David R. Van Wagner");
275+
Console.Error.WriteLine("davevw.com");
276+
Console.Error.WriteLine("Open Source, MIT License");
277+
Console.Error.WriteLine("github.com/davervw/simple-emu-c64");
278+
Console.Error.WriteLine("");
279+
}
271280

272281
if (args.Length == 0 || error || keyword == Keyword.help) // if no arguments present, then show usage as well
273282
{

0 commit comments

Comments
 (0)