From 5620113b49e491876b9a70c0688d8deddfeed8f7 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Mon, 15 Nov 2021 13:12:15 -0300 Subject: [PATCH] Fixed command line for `--list` - PCB and SCH can be needed - Adapted the test for --list --- README.md | 2 +- kibot/__main__.py | 2 +- tests/test_plot/test_misc.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1f002438..2f37b675 100644 --- a/README.md +++ b/README.md @@ -1896,7 +1896,7 @@ KiBot: KiCad automation tool for documents generation Usage: kibot [-b BOARD] [-e SCHEMA] [-c CONFIG] [-d OUT_DIR] [-s PRE] [-q | -v...] [-i] [-m MKFILE] [-g DEF]... [TARGET...] - kibot [-v...] [-c PLOT_CONFIG] --list + kibot [-v...] [-b BOARD] [-e SCHEMA] [-c PLOT_CONFIG] --list kibot [-v...] [-b BOARD] [-d OUT_DIR] [-p | -P] --example kibot [-v...] --help-filters kibot [-v...] --help-list-outputs diff --git a/kibot/__main__.py b/kibot/__main__.py index 6e0a4609..9ba874dc 100644 --- a/kibot/__main__.py +++ b/kibot/__main__.py @@ -10,7 +10,7 @@ Usage: kibot [-b BOARD] [-e SCHEMA] [-c CONFIG] [-d OUT_DIR] [-s PRE] [-q | -v...] [-i] [-m MKFILE] [-g DEF]... [TARGET...] - kibot [-v...] [-c PLOT_CONFIG] --list + kibot [-v...] [-b BOARD] [-e SCHEMA] [-c PLOT_CONFIG] --list kibot [-v...] [-b BOARD] [-d OUT_DIR] [-p | -P] --example kibot [-v...] --help-filters kibot [-v...] --help-list-outputs diff --git a/tests/test_plot/test_misc.py b/tests/test_plot/test_misc.py index e34bc325..b38ec714 100644 --- a/tests/test_plot/test_misc.py +++ b/tests/test_plot/test_misc.py @@ -303,7 +303,7 @@ def test_auto_pcb_and_cfg_5(test_dir): def test_list(test_dir): ctx = context.TestContext(test_dir, 'List', '3Rs', 'pre_and_position', POS_DIR) - ctx.run(extra=['--list'], no_verbose=True, no_out_dir=True, no_board_file=True) + ctx.run(extra=['--list'], no_verbose=True, no_out_dir=True) assert ctx.search_out('run_erc: True') assert ctx.search_out('run_drc: True')