Forum Archive

Building command line app with xcode export but I need a button to pass arguments to the app

radlsneak

Hello

I'm building an exported to xcode iphone app that is basically a command line app. In pythonista itself I can pass arguments to the app but when it's built in xcode it doesn't have that ability. Any suggestions on how to incorporate this in to my little project?

ccc

What about console.input_alert(title[, message, input, ok_button_title])
Show a dialog with a single text field. The text field can be pre-filled with the input parameter. The text that was entered by the user is returned. The ‘Cancel’ button sends a KeyboardInterrupt (which will usually stop the script).

radlsneak

Thanks ccc!

The answers were right in front of me.