Mixxx CLI arguments error handling and autocompletion

Bug #1750905 reported by Dale
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mixxx
Confirmed
Wishlist
Unassigned

Bug Description

Request:

If you launch Mixxx from the CLI there are a number of arguments you can start it with. At least on Linux the behaviour here is non-standard though. If you enter the incorrect syntax or misspell the argument then Mixxx will still load as normal. It should fail to load and tell the user the argument was invalid.

An addition to this which would be really nice (especially as Mixxx uses fairly long argument strings) would be to have Tab Autocompletion working on this. I wouldn't say this is quite standard in Linux but the core GNU utils do it as does some other software so I'm sure it should be possible.

Tags: easy
Revision history for this message
ronso0 (ronso0) wrote :

Yeah, auto-complete would be nice! Or some minimal man page that lists available options.
I rarely use controller debug or different ressource path, but if I do I have to look it up in the wiki to checck the correct spelling.

Revision history for this message
Dale (dj-kaza) wrote :

mixxx --help

That works for giving you a list of the options and their basic description (at least on Linux.)

Still it should fail if typed wrong, stating "invalid argument" or similar. The autocomplete would be nice but really is just a bit of sugar coating I'm less expecting to see....

Revision history for this message
jus (jus) wrote :

``mixxx --h`` works with all supported platforms.
On linux, ``man mixxx` should work with the (outdated) man page available @https://github.com/mixxxdj/mixxx/blob/master/build/debian/mixxx.sgml

`

Revision history for this message
Dale (dj-kaza) wrote :

man mixxx doesn't work here.

"$ man mixxx
No manual entry for mixxx
See 'man 7 undocumented' for help when manual pages are not available."

Revision history for this message
jus (jus) wrote :

Thanks for testing.
Iirc, this should work if installed via *.deb package, if not this is a regression. Im not on linux, so cant test.

Other ways to test are listed here lp:1159150

Revision history for this message
Dale (dj-kaza) wrote :

Mixxx is installed via your Ubuntu beat ppa here:

https://launchpad.net/~mixxx/+archive/ubuntu/mixxxbetas

The methods mentioned on the linked bug report don't work either.

"$ docbook-to-man mixxx.sgml > mixxx.1
/usr/bin/nsgmls:E: cannot find "mixxx.sgml"; tried "mixxx.sgml", "/usr/local/share/sgml/mixxx.sgml", "/usr/share/sgml/mixxx.sgml"
/usr/bin/nsgmls:/usr/share/sgml/docbook/dtd/4.1/docbook.dcl:106:2:E: end of document in prolog
Error: End of AccumElemInfo - should not be here: (No element)"

Revision history for this message
Dale (dj-kaza) wrote :

*Ubuntu beta ppa*

Revision history for this message
Daniel Schürmann (daschuer) wrote : Re: Mixxx CLI arguments error ahndling and autocompletion

for auto-completion we can install a file here:

/etc/bash_completion.d

summary: - (req) Mixxx CLI arguments
+ Mixxx CLI arguments error ahndling and autocompletion
Changed in mixxx:
status: New → Confirmed
tags: added: easy
Changed in mixxx:
importance: Undecided → Wishlist
summary: - Mixxx CLI arguments error ahndling and autocompletion
+ Mixxx CLI arguments error handling and autocompletion
Revision history for this message
Swiftb0y (swiftb0y) wrote :

Mixxx now uses GitHub for bug tracking. This bug has been migrated to:
https://github.com/mixxxdj/mixxx/issues/9146

lock status: Metadata changes locked and limited to project staff
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.