Oldes / Rebol-wishes

Repository for keeping Rebol related wishes out of issues
0 stars 0 forks source link

URL! should be allowed for script on command-line...and... other types? #5

Open Siskin-Bot opened 4 years ago

Siskin-Bot commented 4 years ago

Submitted by: fork

Currently the script name given on the command line must be a filename. It would be nice if a URL could be used instead.

    rebol http://reb4.me/something param1 param2 param3

The more general thought from this would be "you should be able to pass anything that DO would take", and have it replace the --do switch. This would run into contention in the general case if you tried the likes of:

     rebol "append/only system/options/args 1"

That could be a file called "args 1" under some directories. While forcing people to put % in front of their file names would be one answer, that's not an answer compatible with automatic command line completion.

So a way to think of requesting a DO of code behavior would be to still not have a --do switch but enclose the first argument in brackets or parens:

    rebol "[append/only system/options/args 1]"

Imported from: CureCode [ Version: r3 master Type: Wish Platform: All Category: Unspecified Reproduce: Always Fixed-in:none ] Imported from: https://github.com/rebol/rebol-issues/issues/2249

Comments:


Rebolbot added the Type.wish on Jan 12, 2016