From dd86d3ac2ea6fc748ad796ae2bde2979ed8b0155 Mon Sep 17 00:00:00 2001 From: Dan Howe Date: Wed, 14 Feb 2018 07:02:35 +1100 Subject: [PATCH] Update docstring --- scripts/dxf_to_csv.py | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/scripts/dxf_to_csv.py b/scripts/dxf_to_csv.py index 109f7ae..b6cc4ed 100644 --- a/scripts/dxf_to_csv.py +++ b/scripts/dxf_to_csv.py @@ -1,11 +1,27 @@ """Extract points from a dxf file, and save in csv format -Example: - Extract coordinates from all layers - > python dxf_to_xyz.py file.dxf +usage: + dxf_to_csv.py [-h] [-n LAYER_NAME] [-l] dxf_name + +positional arguments: + dxf_name path to dxf file + +optional arguments: + -h, --help show this help message and exit + -n LAYER_NAME name of layer + -l show list of layers + +Examples: + +Show available layers: +> python dxf_to_csv.py drawing.dxf -l + +Convert all layers: +> python dxf_to_csv.py drawing.dxf + +Convert specific layer: +> python dxf_to_csv.py drawing.dxf -n LAYER_NAME - Extract coordinates from one layer - > python dxf_to_xyz.py file.dxf 'survey' """ __author__ = "D. Howe"