From 737e86b889ec4a96e8dbe40c37e876a985a612df Mon Sep 17 00:00:00 2001 From: John Luke Date: Fri, 7 Nov 2003 21:56:24 +0000 Subject: [PATCH] add usage check and message svn path=/trunk/gtk-sharp/; revision=19719 --- sample/GstPlayer.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sample/GstPlayer.cs b/sample/GstPlayer.cs index 8af78c7e6..9565ce677 100644 --- a/sample/GstPlayer.cs +++ b/sample/GstPlayer.cs @@ -11,6 +11,12 @@ public class GstTest { static void Main(string[] args) { + if (args.Length != 1) + { + Console.WriteLine ("usage: Gst.Player.exe FILE.ogg"); + return; + } + Application.Init (); /* create a new bin to hold the elements */