Skip to content
This repository was archived by the owner on Nov 5, 2025. It is now read-only.

Conversation

@calexandru2018
Copy link
Collaborator

  • The CLI has been fully migrated to ArgParse
  • CLI code has been written in OO paradigm
  • None of the commands have been changed, fully backwards compatible with the previous version using Docopt

Copy link
Owner

@Rafficer Rafficer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a great approach! Definitely going with that :)

@calexandru2018 calexandru2018 requested a review from Rafficer July 2, 2020 08:17
Copy link

@ammirate ammirate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

@Rafficer
Copy link
Owner

Rafficer commented Jul 3, 2020

docopt is still mentioned as dependency in setup.py and requirements.txt. 😜

Copy link
Owner

@Rafficer Rafficer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

Please let Alexandru squash-merge so it's properly counted as his contribution 👍

@Rafficer Rafficer merged commit 494ccd9 into master Jul 4, 2020
@calexandru2018 calexandru2018 deleted the argparse-dev branch July 4, 2020 10:49
Galiley pushed a commit to Galiley/linux-cli-community that referenced this pull request Dec 15, 2020
* Ported CLI to argparse, based on OO programming paradigm

* Added descriptive comments

* Updated usage string

* Added logging

* Updated exmaples

* Removed function based CLI code

* Removed docopt dependency

* Added usage constant

* Added back the PVPN_WAIT environment variable

* Addressed Flake8 issues

* Examples are now inline with the CLI

* Removed unncesessary comment

* Cleaned up code and improved readability

* Removed dependencies still they are no longer needed

* Updated inline command

* Allow uppercase protocol with -p

* Allign help message

* Return missing -p to example

Co-authored-by: Alexandru Cheltuitor <[email protected]>
@iiriix
Copy link

iiriix commented Jan 5, 2021

The second to last commit was force-pushed and ignored this PR which was previously merged. I was wondering if that was intentional to revert this back? Getting back to Docopt again?

@kaplun
Copy link
Contributor

kaplun commented Jan 11, 2021

We are preparing the official linux CLI (currently on beta: https://protonvpn.com/blog/linux-vpn-cli-beta/). For technical reasons (as we need to prepare for smooth update from this CLI to the official one) we needed to make a small technical release as part of the planned upgrade. Unfortunately master branch already had this docopt-to-argparse branch merged in, but was too risky to make the technical release to also include this branch.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants