Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Example Standard XCode projects handlinig command line parameters



I'm writing a small utility to accept parameters like
pgcl -h 192.168.27.97 -p 5432 -u someName -p somePassword -d
someDatabase -s someSQL > someDelimitedResult
to connect to remote postgresql database and run some sql.

I have a command line project working, and I'm currently hardcoding
the variables.

Anyone know of a c and/or a c++ example program/project showing how to
handle command line arguments within an Xcode project?

--
Keith Hutchison
http://balance-infosystems.com http://realopen.org
http://www.kasamba.com/Keith-Hutchison
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.