Skip to content

Conversation

eunikolsky
Copy link

This patch fixes parsing of the optional argument to the short options
-l (for --list) and -w (for --download) to accept the target
file/directory on the iOS device. The functionality was already
implemented and working with the long version of the options. That is:

  • -l /Library did not work and is fixed now;

  • --list=/Library used to and continues to work;

  • --list /Library did not and does not work (getopt_long doesn't
    support that).

The fix is to remove double colons after these short options. A few
unused one-letter options were also removed.

This patch fixes parsing of the optional argument to the short options
`-l` (for `--list`) and `-w` (for `--download`) to accept the target
file/directory on the iOS device. The functionality was already
implemented and working with the long version of the options. That is:

* `-l /Library` did not work and is fixed now;

* `--list=/Library` used to and continues to work;

* `--list /Library` did not and does not work (`getopt_long` doesn't
support that).

The fix is to remove double colons after these short options. A few
unused one-letter options were also removed.
@shazron shazron closed this Jan 8, 2019
@shazron shazron reopened this Jan 8, 2019
@shazron shazron added this to the 1.10.0 milestone Jan 15, 2019
@shazron shazron changed the title Fix parsing the short optional arguments fix: fix parsing the short optional arguments Jan 24, 2019
@shazron
Copy link

shazron commented Jul 17, 2019

Just listing the changes here for clarity:

  1. w change to required from optional
  2. l change to required from optional
  3. B changed from optional to no arg
  4. 9 changed from optional to no arg
  5. g removed (unused)
  6. x removed (unused)

@shazron
Copy link

shazron commented Jul 17, 2019

Resolved conflict: added jNs: from opts on master branch to the commit

@shazron shazron merged commit eb908ef into ios-control:master Jul 17, 2019
@eunikolsky eunikolsky deleted the fix/parsing_optional_arguments branch February 6, 2021 19:27
geekonion pushed a commit to geekonion/ios-deploy that referenced this pull request Jun 29, 2023
This patch fixes parsing of the optional argument to the short options
`-l` (for `--list`) and `-w` (for `--download`) to accept the target
file/directory on the iOS device. The functionality was already
implemented and working with the long version of the options. That is:

* `-l /Library` did not work and is fixed now;

* `--list=/Library` used to and continues to work;

* `--list /Library` did not and does not work (`getopt_long` doesn't
support that).

The fix is to remove double colons after these short options. A few
unused one-letter options were also removed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants