From: "RasikaSrinivasan@gmail.com" <RasikaSrinivasan@gmail.com>
Subject: Command Line on windows
Date: Fri, 12 Sep 2008 05:05:26 -0700 (PDT)
Date: 2008-09-12T05:05:26-07:00 [thread overview]
Message-ID: <9516d238-9e52-4de4-9993-590472a1ffba@w7g2000hsa.googlegroups.com> (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
next reply other threads:[~2008-09-12 12:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-12 12:05 RasikaSrinivasan [this message]
2008-09-12 12:25 ` Command Line on windows 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
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox