comp.lang.ada
 help / color / mirror / Atom feed
* Command Line on windows
@ 2008-09-12 12:05 RasikaSrinivasan
  2008-09-12 12:25 ` Gautier
  2008-09-12 15:18 ` Jeffrey R. Carter
  0 siblings, 2 replies; 9+ messages in thread
From: RasikaSrinivasan @ 2008-09-12 12:05 UTC (permalink / raw)


I am trying to write a command line utility and an expected argument
is a wildcard.

but it appears the wildcard is always "expanded to the list of file
names". for example, i create test_cli.adb with the following :

with Text_Io;
with Gnat.Command_Line ;

procedure Test_Cli is

begin
   while Gnat.Command_Line.Getopt("-v") /= Ascii.Nul
   loop
      null ;
   end loop ;
   Text_Io.Put("Argument ");
Text_Io.Put_Line( Gnat.Command_Line.Get_Argument ) ;
end Test_Cli ;


build it with gnatmake test_cli and then
test_cli abcdefghijkl <--- works as expected
test_cli *.adb <--- simply prints test_cli.adb
test_cli *.x <- works as i expect - just prints "*.x"

is there a way to turn of such automatic expansion (in windows)

thanks for any input. srini



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-09-12 17:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-12 12:05 Command Line on windows RasikaSrinivasan
2008-09-12 12:25 ` Gautier
2008-09-12 14:36   ` RasikaSrinivasan
2008-09-12 14:59     ` Gautier
2008-09-12 15:54       ` Jean-Pierre Rosen
2008-09-12 16:31         ` Keith Thompson
2008-09-12 17:00         ` Pascal Obry
2008-09-12 15:18 ` Jeffrey R. Carter
2008-09-12 15:27   ` Adam Beneschan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox