[GH-ISSUE #1290] Add a --list option for option de-abbreviation #816

Open
opened 2026-10-14 03:25:13 +07:00 by bsakaguchi · 5 comments
Owner

Originally created by @magnumripper on GitHub (May 10, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1290

Originally assigned to: @magnumripper on GitHub.

Add a --list=argv option that shows **argv but expanded from any abbreviations. If I remember correctly I have already implemented the necessary function (for adding implied options to a session file).

eg.

$ ./john -w:foo -ru bar.txt --list=argv
./john --wordlist:foo --rules bar.txt
Originally created by @magnumripper on GitHub (May 10, 2015). Original GitHub issue: https://github.com/openwall/john/issues/1290 Originally assigned to: @magnumripper on GitHub. Add a --list=argv option that shows **argv but expanded from any abbreviations. If I remember correctly I have already implemented the necessary function (for adding implied options to a session file). eg. ``` $ ./john -w:foo -ru bar.txt --list=argv ./john --wordlist:foo --rules bar.txt ```
Author
Owner

@frank-dittrich commented on GitHub (May 10, 2015):

How is --list=argv supposed to work with ambiguous abbreviations?

./john test -m -list=argv

And I would prefer if -w:foo gets converted into --wordlist=foo.

<!-- gh-comment-id:100620762 --> @frank-dittrich commented on GitHub (May 10, 2015): How is --list=argv supposed to work with ambiguous abbreviations? ``` ./john test -m -list=argv ``` And I would prefer if `-w:foo` gets converted into `--wordlist=foo`.
Author
Owner

@magnumripper commented on GitHub (May 10, 2015):

How is --list=argv supposed to work with ambiguous abbreviations?

It would either error just like you weren't using --list, or just print it without expanding.

Yes, we should also unify : to =

<!-- gh-comment-id:100621031 --> @magnumripper commented on GitHub (May 10, 2015): > How is --list=argv supposed to work with ambiguous abbreviations? It would either error just like you weren't using --list, or just print it without expanding. Yes, we should also unify `:` to `=`
Author
Owner

@magnumripper commented on GitHub (May 10, 2015):

How is --list=argv supposed to work with ambiguous abbreviations?

It would either error just like you weren't using --list, or just print it without expanding.

Hmm it would obviously be better to list alternatives. But what would the output format be?

<!-- gh-comment-id:100621670 --> @magnumripper commented on GitHub (May 10, 2015): > > How is --list=argv supposed to work with ambiguous abbreviations? > > It would either error just like you weren't using --list, or just print it without expanding. Hmm it would obviously be better to list alternatives. But what would the output format be?
Author
Owner

@frank-dittrich commented on GitHub (May 10, 2015):

May be print the abbreviated version to stdout, an error message and alternatives to stderr?

<!-- gh-comment-id:100622864 --> @frank-dittrich commented on GitHub (May 10, 2015): May be print the abbreviated version to stdout, an error message and alternatives to stderr?
Author
Owner

@frank-dittrich commented on GitHub (May 10, 2015):

May be we even get a reusable function to enhance

$ ./john --m test
Unknown option: "--m"

into something like

$ ./john --m test
Ambiguous option: "--m"
--make-charset=
--markov
--mask=
--max-length=
--max-run-time=
--mem-file-size=
--min-length=
--mkpc=
--mkv-stats=
<!-- gh-comment-id:100624922 --> @frank-dittrich commented on GitHub (May 10, 2015): May be we even get a reusable function to enhance ``` $ ./john --m test Unknown option: "--m" ``` into something like ``` $ ./john --m test Ambiguous option: "--m" --make-charset= --markov --mask= --max-length= --max-run-time= --mem-file-size= --min-length= --mkpc= --mkv-stats= ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#816
No description provided.