Skip to content

Commit

Permalink
Fixed default argument options by setting --test as default
Browse files Browse the repository at this point in the history
  • Loading branch information
392781 committed Oct 5, 2024
1 parent 0bbb5a5 commit f65ad99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wiki.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

# Command line arg
parser = argparse.ArgumentParser(description='Build Codelabs')
parser.add_argument('--test', action=argparse.BooleanOptionalAction, help='Enabled to build in a test directory prior to overwriting root. Default behavior is to ALWAYS build in a test directory. Disable to add to root /docs dir.')
parser.add_argument('--test', action=argparse.BooleanOptionalAction, default=True, help='Enabled to build in a test directory prior to overwriting root. Default behavior is to ALWAYS build in a test directory. Disable to add to root /docs dir.')

args = parser.parse_args()
if args.test:
root="./test"
root = "./test"
else:
root="."
root = "."

# claat build and CSV information
def run(row):
Expand Down

0 comments on commit f65ad99

Please sign in to comment.