Thread Locked This thread is locked - replies are not allowed.


This question is answered.


Permlink Replies: 39 - Pages: 3 [ 1 2 3 | Next ] - Last Post: 23 Jun 22, 17:47 Last Post By: JeffTucker
JeffTucker

Posts: 8,292
Registered: 31-Jan-2006
List of all command line options
Posted: 8 Jun 22, 00:18
 
How can we get a list of all the command line options? These commands used to work, but no longer do:
/Applications/jAlbum.app/Contents/MacOS/jalbum -?
 
"C:\Program Files\jAlbum\jre64\bin\java" -jar "C:\Program Files\jAlbum\JAlbum.jar" -?
The macOS version gives no matches found -? and the Windows version produces a NullPointerException, an InvocationTargetException, and so on.
davidekholm

Posts: 3,935
Registered: 18-Oct-2002
Re: List of all command line options
Posted: 9 Jun 22, 11:39   in response to: JeffTucker in response to: JeffTucker
 
That's obviously broken now. I'll address it. Thanks for spotting.
davidekholm

Posts: 3,935
Registered: 18-Oct-2002
Re: List of all command line options
Posted: 9 Jun 22, 13:35   in response to: davidekholm in response to: davidekholm
Correct
Now fixed in v28.1.6 (core update)
JeffTucker

Posts: 8,292
Registered: 31-Jan-2006
Re: List of all command line options
Posted: 9 Jun 22, 13:38   in response to: davidekholm in response to: davidekholm
 
Back to normal in Windows. :)

I'll leave it to RobM to do the macTest - he's actually the one who ran into this in the first place, in the course of doing some wiki updates.
RobM

Posts: 3,955
Registered: 4-Aug-2006
Re: List of all command line options
Posted: 9 Jun 22, 22:04   in response to: JeffTucker in response to: JeffTucker
 
JeffTucker wrote:
Back to normal in Windows. :)

I'll leave it to RobM to do the macTest - he's actually the one who ran into this in the first place, in the course of doing some wiki updates.

Not working for me, jAlbum 28.1.6
JeffTucker

Posts: 8,292
Registered: 31-Jan-2006
Re: List of all command line options
Posted: 9 Jun 22, 22:31   in response to: RobM in response to: RobM
 
Yes, I'm still getting zsh: no matches found: -? on my Mac.
ronvanrossum

Posts: 68
Registered: 16-Jul-2014
Re: List of all command line options
Posted: 10 Jun 22, 07:04   in response to: JeffTucker in response to: JeffTucker
 
macOS 12.4

/Applications/jAlbum.app/Contents/MacOS/jalbum -help

gives a list of options
AndreWolff

Posts: 1,116
Registered: 14-Dec-2007
Re: List of all command line options
Posted: 10 Jun 22, 08:24   in response to: JeffTucker in response to: JeffTucker
 
JeffTucker wrote:
How can we get a list of all the command line options? These commands used to work, but no longer do:
/Applications/jAlbum.app/Contents/MacOS/jalbum -?
 
"C:\Program Files\jAlbum\jre64\bin\java" -jar "C:\Program Files\jAlbum\JAlbum.jar" -?

Who on earth can remember this?

It should be
jAlbum - ?
and the list should also be available in the jAlbum help menu!
ronvanrossum

Posts: 68
Registered: 16-Jul-2014
Re: List of all command line options
Posted: 10 Jun 22, 09:26   in response to: AndreWolff in response to: AndreWolff
 
Who on earth can remember this?

It should be

jAlbum - ?

I would most certainly not remember your suggestion. I think it should be /? /h or /help for windows and -? -h or -help for unix/macos.
RobM

Posts: 3,955
Registered: 4-Aug-2006
Re: List of all command line options
Posted: 10 Jun 22, 09:36   in response to: ronvanrossum in response to: ronvanrossum
 
The wiki help page for the command line has been updated to show the equivalent gui setting (for most switches, a few still need adding). Hopefully that is more useful than just the list obtained from the help command.

If anyone knows more about the missing entries just post them here or add them to the wiki.
JeffTucker

Posts: 8,292
Registered: 31-Jan-2006
Re: List of all command line options
Posted: 10 Jun 22, 13:49   in response to: ronvanrossum in response to: ronvanrossum
 
ronvanrossum wrote:
macOS 12.4

/Applications/jAlbum.app/Contents/MacOS/jalbum -help

gives a list of options


That doesn't work in macOS 11.6.6 (which is the last one I can get on this aging Macbook Air). I just get zsh: command not found: jAlbum.
davidekholm

Posts: 3,935
Registered: 18-Oct-2002
Re: List of all command line options
Posted: 10 Jun 22, 13:52   in response to: JeffTucker in response to: JeffTucker
 
The Mac executable is called "jalbum", not "jAlbum". Back track the path a bit and hit tab to expand it again.
JeffTucker

Posts: 8,292
Registered: 31-Jan-2006
Re: List of all command line options
Posted: 10 Jun 22, 13:55   in response to: davidekholm in response to: davidekholm
 
Tried both spellings. There is only one file in that directory: jAlbum.

ETA: And it's described as a Unix Executable File.

Edited by: JeffTucker on 10 Jun 2022, 08:01
davidekholm

Posts: 3,935
Registered: 18-Oct-2002
Re: List of all command line options
Posted: 10 Jun 22, 14:01   in response to: JeffTucker in response to: JeffTucker
 
If you hit tab so you let it expand the path, it should expand to whatever the name is. Here it's "jalbum" though. If the path is right, then you shouldn't get "command not found"
JeffTucker

Posts: 8,292
Registered: 31-Jan-2006
Re: List of all command line options
Posted: 10 Jun 22, 14:02   in response to: davidekholm in response to: davidekholm
 
Look at my screenshot.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums