Support for DOS-style commandline options: -? and "/"

VERIFIED FIXED in M15

Status

()

P3
normal
VERIFIED FIXED
19 years ago
16 years ago

People

(Reporter: alan-lists, Assigned: sspitzer)

Tracking

Trunk
x86
Windows 95
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

19 years ago
Mcafee, I put you down in the assigned field as you fixed the last bug in this
area.  This is really low priority, but would be nice.

In the MS DOS world I am used to hitting -? or /? to get the help screen in
stead of -h or -help.  -? Should be an option.

The other thing MS DOS people do is "/" instead of "-".  Can we have "/" or "-"
for all paramaters?

Also if you enter a paramater that is not known what about having message saying
"unknown paramater.....".

Updated

19 years ago
Component: Browser-General → XPApps
Summary: mozilla -? and "/" instead of "-" should be an option. → Support for DOS-style commandline options: -? and "/"

Comment 1

19 years ago
better summary

Updated

19 years ago
Assignee: mcafee → law

Comment 2

19 years ago
Looks like the "-help" strings, etc. are hard-coded
into nsAppRunner.cpp, we would have to abstract the
'-' character somehow.  Over to law for a look.

Updated

19 years ago
Status: NEW → ASSIGNED
Target Milestone: M14

Comment 3

19 years ago
Targeting for M14.  A quick and dirty fix shouldn't be too hard.  Doing it
properly (including proper localization) might take a bit more work.

Comment 4

19 years ago
Moving to M15.
Target Milestone: M14 → M15
(Reporter)

Comment 5

19 years ago
Reassigning to sspitzer@netscape.com as requested

I would suggest that win32, unix, ect should all be able to to a "/" instead of 
"-" not nost just Win32 for consistancy.  
Assignee: law → sspitzer
Status: ASSIGNED → NEW
Component: XPApps → Threading
on linux, / will not work

proof:

mozilla /foo

is that

mozilla with the argument -foo
or 
mozilla display the file /foo

this will be windows only.
Status: NEW → ASSIGNED
on windows, mozilla /mail works just like mozilla -mail.  /? does the same thing
as /help (and -help)

on linux, /mail is not the same as -mail (see my comments above)

but --mail is == -mail
 
-V -Version and -VERSION all work now, due to the magic of strcasecmp
Status: ASSIGNED → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → FIXED
(Reporter)

Comment 8

19 years ago
oops this was my bug, marking verifed fixed
Status: RESOLVED → VERIFIED
Moving all threading bugs to XPCOM. See bug 160356.
Component: Threading → XPCOM
You need to log in before you can comment on or make changes to this bug.