nicolai-wachenschwan / arc-overhang-prusaslicer-integration

A 3D printer slicing algorithm that lets you print 90° overhangs without support material.
GNU General Public License v3.0
332 stars 26 forks source link

added cli args and help #79

Open jperry004 opened 6 months ago

jperry004 commented 6 months ago

Description: This pull request integrates argument parsing into the G-code processing script, making it more user-friendly and adaptable for automation. It adds support for a mandatory file path as a positional argument and an optional --skip-input flag for non-interactive environments.

Key Changes: Positional Argument: Users must specify the G-code file path directly when executing the script. Optional Flag: The --skip-input flag allows users to bypass manual input prompts. Help Output: Enhanced help documentation is available to assist with new command-line options.

Behavior: Running with Arguments: python prusa_slicer_post_processing_script.py /path/to/your/file.gcode Skipping Input Prompts: python prusa_slicer_post_processing_script.py /path/to/your/file.gcode --skip-input Accessing Help: python prusa_slicer_post_processing_script.py --help

No Arguments Provided: If the script is run without any arguments, it will display an error message and the usage information to help guide the user on how to properly execute the script.