Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standardize command line options #193

Open
adisidev opened this issue Sep 3, 2024 · 1 comment
Open

Standardize command line options #193

adisidev opened this issue Sep 3, 2024 · 1 comment

Comments

@adisidev
Copy link
Collaborator

adisidev commented Sep 3, 2024

arguments.add_argument("-W", "--world")
.help("Boolean: is input a world map in longitude-latitude format?")
.default_value(false)
.implicit_value(true);
arguments.add_argument("-p", "--plot_polygons")
.help("Boolean: Plot images of input and output cartogram")
.default_value(false)
.implicit_value(true);
arguments.add_argument("-q", "--plot_quadtree")
.help("Boolean: Plot images of Quadtree-Delaunay Triangulation")
.default_value(false)
.implicit_value(true);
arguments.add_argument("-d", "--plot_density")
.help("Boolean: Plot images of flatten and blur density")
.default_value(false)
.implicit_value(true);
arguments.add_argument("-g", "--plot_grid")
.help("Boolean: Plot images of with transformed grid grid")
.default_value(false)
.implicit_value(true);
arguments.add_argument("-i", "--plot_intersections")
.help("Boolean: Plot images of intersections (if any)")
.default_value(false)
.implicit_value(true);
arguments.add_argument("-E", "--output_equal_area")
.help(
"Boolean: Output equal area GeoJSON from input GeoJSON - no cartogram")
.default_value(false)
.implicit_value(true);
arguments.add_argument("-T", "--triangulation")

@adisidev
Copy link
Collaborator Author

adisidev commented Sep 3, 2024

Currently we have no convention for command line arguments. In the past, we suggested to have all boolean commands be represented by a single capital letter, and all options that take an argument (like --n_points) be lowercase. Either, we redo our flags to follow this convention or think of a new one.

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

No branches or pull requests

1 participant