dan-snelson / dialog-scripts

Scripts with leverage Bart Reardon's swiftDialog
MIT License
110 stars 35 forks source link

Spaces within --textfield flag in Extra Flags parameter not detected #49

Closed regorian closed 1 year ago

regorian commented 1 year ago

Describe the bug

To Reproduce

Expected behavior

Code/log output


###
# Display Message via swiftDialog (0.0.8)
###

2023-06-06 10:54:34 - PRE-FLIGHT CHECK: Initiating …
2023-06-06 10:54:34 - PRE-FLIGHT CHECK: macOS 13 installed; proceeding ...
2023-06-06 10:54:34 - PRE-FLIGHT CHECK: swiftDialog version 2.2.0.4535 found; proceeding...
2023-06-06 10:54:34 - Both "title" and "message" Parameters are populated; proceeding ...
2023-06-06 10:54:34 - Title: Temporary Administrator Access
2023-06-06 10:54:34 - Message: You are requesting temporary administrator access on your workstation. Please note that any abuse of this privilege will be immediately revoked and requests for admin access in the future will be denied.

You will have admin access for thirty (30) minutes. Please use this time to accomplish whatever tasks you require. Please make sure you run this policy ***before*** you attempt your administrative task.
2023-06-06 10:54:34 - Extra Flags: --position top --textfield "Reason for this request",prompt="Why you are requesting this access?"
"Reason : 
2023-06-06 10:57:34 - Return Code: 0
brian.sullivan clicked Grant
2023-06-06 10:57:34 - brian.sullivan clicked Grant;
2023-06-06 10:57:35 - Quitting …
2023-06-06 10:57:36 - Exiting …
2023-06-06 10:57:36 - Removing /var/tmp/dialogWelcomeLog.PWI …
2023-06-06 10:57:36 - Removing /var/tmp/overlayicon.icns …
2023-06-06 10:57:36 - Goodbye!

Screenshots

image

Environment (please complete the following information):

dan-snelson commented 1 year ago

@regorian:

Thanks for the submitting the Most. Detailed. Bug Report. Ever!

However, I never intended for Display Message to be used as you've detailed here, so I'm going to close this as "not planned."

(You may wish to take a look at other projects, such as Elevate.)

Thanks again.

-- Dan