Show help if no arguments are passed.

This commit is contained in:
2020-03-12 02:20:11 +00:00
parent aa2ce9888c
commit 91f647429e

View File

@@ -60,6 +60,12 @@ namespace Aaru
[STAThread]
public static int Main(string[] args)
{
if(args.Length == 0)
args = new[]
{
"--help"
};
object[] attributes = typeof(MainClass).Assembly.GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
_assemblyTitle = ((AssemblyTitleAttribute)attributes[0]).Title;
attributes = typeof(MainClass).Assembly.GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);