function print_help
Maturity: 40
Displays help information for Vice AI Development Tools, listing available commands and usage examples.
File:
/tf/active/vicechatdev/vice_ai/dev_tools.py
Lines:
104 - 117
104 - 117
Complexity:
simple
simple
Purpose
This function serves as a command-line help interface for a development tools script. It prints formatted documentation showing available commands (clear, check, touch, info) with their descriptions and example usage patterns. It's designed to guide developers on how to use the dev_tools.py script for managing browser cache, checking static files, and server cache operations.
Source Code
def print_help():
"""Print help information"""
print("🛠️ Vice AI Development Tools")
print()
print("Commands:")
print(" clear - Show browser cache clearing instructions")
print(" check - Check static file status and server cache info")
print(" touch - Touch static files to force cache refresh")
print(" info - Check server debug cache information")
print()
print("Examples:")
print(" python dev_tools.py check")
print(" python dev_tools.py touch")
print(" python dev_tools.py clear")
Return Value
This function returns None (implicit). It performs a side effect of printing help text to stdout.
Usage Example
# Direct function call
print_help()
# Output:
# 🛠️ Vice AI Development Tools
#
# Commands:
# clear - Show browser cache clearing instructions
# check - Check static file status and server cache info
# touch - Touch static files to force cache refresh
# info - Check server debug cache information
#
# Examples:
# python dev_tools.py check
# python dev_tools.py touch
# python dev_tools.py clear
Best Practices
- This function has no parameters and is meant to be called directly when help is needed
- The function uses print statements for output, so it writes directly to stdout
- This is a pure side-effect function with no return value
- Typically called when no arguments are provided to the script or when a help flag is used
- The emoji (🛠️) may not display correctly in all terminal environments
Tags
Similar Components
AI-powered semantic similarity - components with related functionality:
-
function main_v52 60.5% similar
-
function clear_browser_cache_instructions 55.1% similar
-
function main_v68 45.0% similar
-
function check_debug_endpoint 44.8% similar
-
function main_v24 44.2% similar