Skip to content

Commit

Permalink
style: use overwrite and not 'o' flag in Python scripts (OSGeo#4176)
Browse files Browse the repository at this point in the history
(replaces OSGeo#4175)

Fixes message

```bash
WARNING: Please update the usage of <v.db.connect>: flag <o> has been
         renamed to <--overwrite>
```
  • Loading branch information
neteler authored Aug 14, 2024
1 parent fa6d31d commit cc0e2ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/v.db.reconnect.all/v.db.reconnect.all.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def main():
try:
gs.run_command(
"v.db.connect",
flags="o",
overwrite=True,
quiet=True,
map=vect,
layer=layer,
Expand Down
2 changes: 1 addition & 1 deletion scripts/v.unpack/v.unpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def main():
try:
grass.run_command(
"v.db.connect",
flags="o",
overwrite=True,
quiet=True,
driver=dbconn["driver"],
database=todb,
Expand Down
2 changes: 1 addition & 1 deletion vector/v.fill.holes/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def import_data(path, areas_name, areas_with_space_in_between, env):
"v.db.connect",
map=areas_with_space_in_between,
table=areas_with_space_in_between,
flags="o",
overwrite=True,
env=env,
)

Expand Down

0 comments on commit cc0e2ce

Please sign in to comment.